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

JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects JavaScript Object Notation

JSON is a string that's formatted LIKE a JavaScript object literal

can someone explain this concept a little more?

Here's a discussion that touches upon this: http://benalman.com/news/2010/03/theres-no-such-thing-as-a-json/

nice that makes a little more sense. i see the differences between them. thanks

1 Answer

Steven Parker
Steven Parker
231,269 Points

Well, it's not just like any JavaScript object, but like one composed of a collection of nested lists of property/value pairs. A handy example of a large JSON object is your own Treehouse profile data.

You can see that it looks very much like a JavaScript data object.