Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
JQuery 1.4 Might Break Your AJAX (neeraj.name)
4 points by seasoup on Jan 15, 2010 | hide | past | favorite | 2 comments


Synopsis:

This is bad json and will result in an error: { 'foo' : 'bar' } { foo: 'bar' } { foo: "bar" } { "foo" : 'bar' }

You must do this: { "foo" : "bar" }


JSON.parse will also choke on the out-of-spec JSON. If your AJAX interactions stop working with jquery 1.4, it's your AJAX that is broken :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: