I have confusion about what exactly people mean by Object Literals, JSON, JavaScript Objects, to me they seem similar:
{foo: \'bar\', bar : \'baz\'}
According to the specification, in JSON all strings, whether they are values or keywords, should be surrounded by double quotes.
Your example would be a valid JSON string if it contains the following:
{"foo": "bar", "bar": "baz"}