var obj = {foo: 42}; // creates a JavaScript object (this is *not* JSON) var json = '{"foo": 452}'; // creates a string containing JSON