Added native support for JSON data.
This commit is contained in:
parent
fb534aea03
commit
d2529835be
1 changed files 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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue