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 trialIain Simmons
Treehouse Moderator 32,305 PointsViewing JSON data in the browser - recommended add-ons/extensions
Up until I watched this video, I was using the Chrome extension JSONView to automatically 'pretty print' JSON when opened in Chrome. It's certainly quicker than copying and pasting into another website to 'prettify' it.
I thought I'd look around and see what else was out there and found JSON Formatter, which has a much nicer look.
For those using Firefox, JSONView is available as a Firefox add-on.
Anyone using anything else, or have a preferred method of viewing JSON data?
2 Answers
Andrew Chalkley
Treehouse Guest TeacherGreat tips :)
Nicholas Hebb
18,872 PointsIn Chrome you can use console.table(jsonObject). It works with arrays as well.
Clifford Fajardo
13,127 PointsClifford Fajardo
13,127 PointsThis Chrome extensions called JSON Viewer does the same thing, and it has syntax highlighting available. I have my prettified JSON displaying in Monokai =).