I have an API output like this:
{"user" : {"status" : {"stat1" : "54", "stats2" : "87"}}}
I am creating a simple JSONObject from this API with:
JSONObject json = getJSONfromURL(URL);
After that, I can read the data for the user as follows:
String user = json.getString("user");
But how do I get data for stat1 and stat2 ?
java json android
user1488243
source share