Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在android中解析jsonObject?_Java_Android_Json - Fatal编程技术网

Java 如何在android中解析jsonObject?

Java 如何在android中解析jsonObject?,java,android,json,Java,Android,Json,可能重复: 我有一个需求,需要解析jsonObject。我的格式是 [{"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

可能重复:

我有一个需求,需要解析jsonObject。我的格式是

[{"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"}}]
如何解析这个?帮帮我?


第一个教程点击:

您可以使用(或)等JSON库之一来解析JSON字符串。它们为json字符串创建Java对象。

实际上,它不是jsonObject,而是。