JAVASCRIPT 8
ParseJSON.js Guest on 8th April 2021 06:03:24 AM
  1. define([
  2.       "../core"
  3. ], function( jQuery ) {
  4.  
  5. // Support: Android 2.3
  6. // Workaround failure to string-cast null input
  7. jQuery.parseJSON = function( data ) {
  8.       return JSON.parse( data + "" );
  9. };
  10.  
  11. return jQuery.parseJSON;
  12.  
  13. });

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.