0
Well I am "beginner" on android. And in my project, I’m getting from http reponse (with the GET method) a string for Jsonobject.
"{ "status":{ "d3": { "stats" : false }, "a1": { "stats" : false } } }"
But I can’t do the function that takes the D3/a1.
The last line is not supposed to be
JSONObject d3 = status.getJSONObject("d3");
?– Isac
I put it like that and it worked so maybe it’s supposed to
– Vralago
I’m just commenting from a perspective of getting the answer to be as correct as possible. So it was certainly a constructive comment. If the
status
is insideobj
if madeobj.getJSONObject(
to get it, then to get thed3
insidestatus
it would make sense to bestatus.getJSONObject(
. Or I’m the one thinking wrong?– Isac
@Isac, yes you are correct I ended up putting the incorrect name Thank you for the touch already corrected now is correct! :)
– Ezequiel Messore
@Ezequielmessore No problem. Now it got better. I gave it my +1 too.
– Isac