I have a string called "response" like this:
{"test": {
"id": 179512,
"name": "Test",
"IconId": 606,
"revisionDate": 139844341200,
"Level": 20
}}
I want to save id value to a variable. How can i do it?
JSONObject jsonObj = new JSONObject(response);
jsonObj.getInt("id");
This dont work.