-2

Possible Duplicate:
How can I parse this JSON in Android?

I have a requirement, where i need to parse the jsonObject. My format will be

[{"music":{"artist":"Dire Straits","album":"The Best of Dire Straits","genre":"Pop","title":"Sultans Of Swing"}},{"camera":{"picture":"http:\/\/sp.sony-europe.com\/da\/594\/195346.jpeg","model":"Digital Still Camera - H Series - DSC-HX200V","make":"Sony","price":510}},{"book":{"description":"What is self, and how can a self come out of inanimate matter?' Is the riddle that drove Douglas Hofstadter to write this extraordinary book. In order to impart his highly original and personal view on the core mystery of human existence - the intangible sensation of 'I'-ness - Hofstadter defines the playful yet seemingly paradoxical notion of 'strange loop', and explicates this idea using analogies from many disciplines.","authors":"Douglas R Hofstadter","price":650,"id":40724766,"title":"G\u00f6del, Escher, Bach: an Eternal Golden Braid"}}]

How to parse this ? Help me?

Community
  • 1
  • 1
pushpa
  • 573
  • 2
  • 7
  • 19

2 Answers2

1

Google: Android parse json

First tutorial hit: here

nhaarman
  • 98,571
  • 55
  • 246
  • 278
0

You may use one of JSON libraries like GSON (or) json-lib etc., to parse JSon string. They create Java objects for the json string.

kosa
  • 65,990
  • 13
  • 130
  • 167