I have an API Output like this:
{\"user\" : {\"status\" : {\"stat1\" : \"54\", \"stats2\" : \"87\"}}}
I create a simple JSONObject
JSONObject
To access properties in an JSON you can parse the object using JSON.parse and then acceess the required property like:
var star1 = user.stat1;