Table of Content
Parse JSON
And here is the result of that API.
1{ 2 "coord": { 3 "lon": 113.546112, 4 "lat": 22.20056 5 }, 6 "sys": { 7 "country": "MO", 8 "sunrise": 1383690767, 9 "sunset": 1383731168 10 }, 11 "weather": [ 12 { 13 "id": 800, 14 "main": "Clear", 15 "description": "Sky is Clear", 16 "icon": "01n" 17 } 18 ], 19 "base": "cmc stations", 20 "main": { 21 "temp": 296.215, 22 "temp_min": 296.215, 23 "temp_max": 296.215, 24 "pressure": 1027.78, 25 "sea_level": 1031.1, 26 "grnd_level": 1027.78, 27 "humidity": 95 28 }, 29 "wind": { 30 "speed": 4.43, 31 "deg": 49.5008 32 }, 33 "clouds": { 34 "all": 0 35 }, 36 "dt": 1383755905, 37 "id": 1821274, 38 "name": "Macau", 39 "cod": 200 40}
What’s next? We’re going to take a look at “Code for rain”.