How to parse json string in android?
Answers
Answered by
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
Science,
6 months ago
Hindi,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
History,
1 year ago
History,
1 year ago