mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added native support for JSON data.
This commit is contained in:
parent
fb534aea03
commit
d2529835be
@ -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 New Issue
Block a user