Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    This isn't JSON, it is just a JavaScript object. Commented Feb 8, 2010 at 20:15
  • 2
    JSON = JavaScript Object Notation ... I guess we are talking the same language :P Commented Feb 8, 2010 at 20:17
  • 2
    JSON is a serialized form of JavaScript objects and as such has slightly different syntax requirements. JSON is represented always as a string, not a real object. It is parsed into real objects, or serialized in a string. Commented Feb 8, 2010 at 20:18
  • I think the confusion comes in because array and object literal notation is (practically) equivalent to JSON. Commented Feb 8, 2010 at 20:20
  • 2
    One thing to note is that a function would have no meaning in a JSON object since it's meant to be an interchange format. You can't serialize a JS function and have it make any sense to say, PHP or Java. Commented Feb 9, 2010 at 22:43