All ChallengesGet full labs
beginnerweb2 min+10 pts
JSON API Response Parser
Extract the specific value from this API response.
You receive this JSON response from a weather API. Extract the temperature in Celsius for the capital city.
challenge
{
"status": "ok",
"data": {
"countries": [
{ "name": "France", "capital": "Paris", "temp_c": 18.5 },
{ "name": "Japan", "capital": "Tokyo", "temp_c": 22.1 },
{ "name": "Brazil", "capital": "Brasilia", "temp_c": 27.3 }
]
}
}What is the temperature in Celsius for the capital of France? Enter just the number.
Challenge of the week?
New challenges added every Monday