Computer Science, asked by srikanthchiku2233, 1 year ago

How to parse json string in android?

Answers

Answered by khushi769
0

JSON - Parsing. JSONObject sys = reader.getJSONObject("sys"); country = sys.getString("country"); JSONObject main = reader.getJSONObject("main"); temperature = main.getString("temp"); The method getJSONObject returns the JSON object. The method getString returns the string value of the specified key.

Similar questions