崩潰這是logcat的錯誤,我gettingsponse是完全確定,但不知道whyit不工作Android應用程序,同時使POST請求與jsonparser
JSON重新
06-24 03:20:38.830: E/JSON Parser(15245): Error parsing data org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
{"status":{"type":"Error","msg":"Authorization Required"}}
{
"data": {
"access_token": "3c2e2bdce081bdfd31f75f2cb26855e9",
"user": {
"client_id": 0,
"user_type_id": 0
}
},
"status": {
"type": "success",
"action": "login"
}
}}
發佈UR JSON數據結構。因爲你試圖通過創建jsonobject解析字符串的錯誤。 –