Respuesta :

tonb
True. You could do:

var myObj = JSON.parse('{ "foo":"bar" }');

which gives the same result as:

var myObj = {
   foo : "bar"
};