Added native support for JSON data.

This commit is contained in:
John Resig 2006-08-31 06:32:27 +00:00
parent fb534aea03
commit d2529835be

View File

@ -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;
},