Question: Given the JSON string below, write the snippet of code that parses for: The value of country The value of temp { sys : {
Given the JSON string below, write the snippet of code that parses for:
The value of country
The value of temp
{ "sys": { "country": "GB", "sunrise": 1381107633, "sunset": 1381149604 }, "weather":[ { "id":711, "main": "Smoke", "description":"smoke", "icon":"50n" } ], "main": { "temp": 304.15, "presure":1009, } } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
