How to find specified name and its value in JSON-string from Java?
Use a JSON library to parse the string and retrieve the value. The following very basic example uses the built-in JSON parser from Android. String jsonString = “{ \”name\” : \”John\”, \”age\” : \”20\”, \”address\” : \”some address\” }”; JSONObject jsonObject = new JSONObject(jsonString); int age = jsonObject.getInt(“age”); More advanced JSON libraries, such as jackson, … Read more