Skip to content
Permalink
Browse files

Added native support for JSON data.

  • Loading branch information
jeresig committed Aug 31, 2006
1 parent fb534ae commit d2529835be92c7be6a970ceda95285323fd57285
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ajax/ajax.js
@@ -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.
You can’t perform that action at this time.