JQuery 1.4 Might Break Your AJAX Posted by seasoup on Friday January 15, 2010 @04:06PM from the neeraj.name dept. http://www.neeraj.name/blog/articles/895-handling-json-parsing-natively-in-jquery-1-4-and-what-changed-from-jquery-1-3 ( 2 comments | 4 points | on HN )
This is bad json and will result in an error: { 'foo' : 'bar' } { foo: 'bar' } { foo: "bar" } { "foo" : 'bar' }
You must do this: { "foo" : "bar" }