Skip to content
Permalink
Browse files
Added native support for JSON data.
  • Loading branch information
jeresig committed Aug 31, 2006
1 parent fb534ae commit d252983
Showing 1 changed file with 3 additions and 0 deletions.
@@ -274,6 +274,9 @@ jQuery.extend({
// If the type is "script", eval it
if ( type == "script" ) eval.call( window, data );

// Get the JavaScript object, if JSON is used.
if ( type == "json" ) eval( "data = " + data );

return data;
},

0 comments on commit d252983

Please sign in to comment.