I have a JSON like
{
"status":{
"server":{"bool":true},
"request":{"bool":true},
"third_party":{"bool":true},
"operation":{"bool":false,"int":-12,"str":"Not authenticated!"}
},
"response":{
"count":3,
"emails":["[email protected]","[email protected]","[email protected]"]
}
}
Note: The JSON code above it's just an example and it may seem illogical.
The problem is I think it is not efficient to parse it using JSONObject and the code becomes a mess.
Therefore, I would like to know whether there is a way to parse it like in PHP when using json_decode().
Which will make me reach the elements like in this way
JSONParser jp = new JSONParser(json);
boolean server_status = jp.status.server.bool;
I wish you can understand what do I mean and help me as well.
Thank you.