parseJSON.js 222 B

12345678910111213
  1. define([
  2. "../core"
  3. ], function( jQuery ) {
  4. // Support: Android 2.3
  5. // Workaround failure to string-cast null input
  6. jQuery.parseJSON = function( data ) {
  7. return JSON.parse( data + "" );
  8. };
  9. return jQuery.parseJSON;
  10. });