Hi All,
I'm trying to parse something like the following JSON to extract specific values - such as description, name, temp etc. I've tried the examples & reworking them, but just cannot get it.
I'm trying to parse something like the following JSON to extract specific values - such as description, name, temp etc. I've tried the examples & reworking them, but just cannot get it.
Current weather data - OpenWeatherMap
Obtain real-time weather data for any location globally with OpenWeather's Current Weather Data API. Provides comprehensive weather details in JSON, XML, or HTML formats, including temperature, pressure, humidity, and more. Supports geocoding, language options, and different measurement units.
openweathermap.org
B4X:
{
"coord": {
"lon": -0.13,
"lat": 51.51
},
"weather": [
{
"id": 300,
"main": "Drizzle",
"description": "light intensity drizzle",
"icon": "09d"
}
],
"base": "stations",
"main": {
"temp": 280.32,
"pressure": 1012,
"humidity": 81,
"temp_min": 279.15,
"temp_max": 281.15
},
"visibility": 10000,
"wind": {
"speed": 4.1,
"deg": 80
},
"clouds": {
"all": 90
},
"dt": 1485789600,
"sys": {
"type": 1,
"id": 5091,
"message": 0.0103,
"country": "GB",
"sunrise": 1485762037,
"sunset": 1485794875
},
"id": 2643743,
"name": "London",
"cod": 200
}