I want to get the value of the message
property in Java:
{ "responseStatus": { "message": "Success" } }
I did this:
lJsonObj.getString("??")
I want to get the value of the message
property in Java:
{ "responseStatus": { "message": "Success" } }
I did this:
lJsonObj.getString("??")
You can get a nested json object with this:
JSONObject nestedJsonObject = rootJsonObject.getJSONObject("responseStatus");
You can get a string from a json object with this:
String message = nestedJsonObject.getString("message");