我有一个JSON格式的数据如下:
现在我想要获取Status的值以便进行一些逻辑操作。{"response":{"status":true,"result":"user_exists"}}
JSONObject jData = new JSONObject(data);
JSONArray response = jData.getJSONArray("response");
但我遇到了以下错误
org.json.JSONException:值{"result":"user_exists","status":true}的响应类型为org.json.JSONObject,无法转换为JSONArray
如何从内部获取对象?