我无法解析JSON,但我可以从网上查看JSON

时间:2016-02-26 07:58:42

标签: android json

我无法解析JSON。 我的ParseJSon

enter image description here

的getJSON

enter image description here

{"server_response":{"id":"1","email":"josephine_locsin@gmail.com","password":"7c4a8d09ca3762af61e59520943dc26494f8941b","first_name":"Josephine","last_name":"Locsin","title":"Chief Executive Officer, Tumandok Crafts Industries","skype_name":"echo123","filename":"1.jpg","birthdate":"1979-04-10","about_me":"Chief Executive Officer, Tumandok Crafts Industries And Former President, Association For Negros Producers (ANP)","facebook":null,"twitter":null,"google_plus":null,"linked_in":null,"address":"Bago City","gender":"Female","civil_status":"Married","user_type":"client","client_type_id":"1","province_id":"10","is_online":"2","is_activated":"1","last_activity":"2016-02-26 11:29:36","date_registered":null,"agencies":false}}

2 个答案:

答案 0 :(得分:1)

你的server_response不是jsonArray,它是JsonObject

答案 1 :(得分:0)

doInBackground中,为什么要返回null return = null。相反,你必须返回响应。所以改变它