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 trial

Android Build a Weather App (2015) Working with JSON Review: Working with JSON

Maksims Visnakovs
Maksims Visnakovs
2,616 Points

String homePlanet = jsonObject.[//something to add//] ("planet");

Please, help me! I am really not sure what do I have to enter here. It is last quiz in JSON section of Build a Weather App.

Thanks in Advance

2 Answers

Jordan Ernst
Jordan Ernst
5,121 Points

here is the hint my friend, if you have a planet defined as a (String) of characters. how might you "GET" that information from the JsonObject?

hope that helps!

String homePlanet = jsonObject.getString.("planet");