Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJake Nguyen
48 PointsHow to parse JSONArray from Openweathermap.org into CurrentWeather?
Values for "weather" from Openweathermap API cannot be converted into JSONObject.
Stephen Sysak
2,025 PointsStephen Sysak
2,025 PointsYou're going to need to parse the array from the response by using:
To populate the icon and description for example you would need to create a String for those then pass that:
Passed like this:
You can easily get the info you need from an online JSON parser such as:
https://jsonformatter.org/json-parser