Skip to content
07/07/2010 / dimarzionist

jQuery 1.4.x and JSON

If you’ve recently updated to jQuery 1.4.x on your projects you will need to ensure all your $.getJSON functions still working, because of the changes in the way how jQuery handles incorrectly formatted JSON – now it will just silently die, without giving you a chance to understand what was wrong with the data it received.

To ensure JSON you’re getting/generating use one of many JSON validators like JSONLint

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: