/** * jQuery JSON plugin v2.5.1 * https://github.com/Krinkle/jquery-json * * @author Brantley Harris, 2009-2011 * @author Timo Tijhof, 2011-2014 * @source This plugin is heavily influenced by MochiKit's serializeJSON, which is * copyrighted 2005 by Bob Ippolito. * @source Brantley Harris wrote this plugin. It is based somewhat on the JSON.org * website's http://www.json.org/json2.js, which proclaims: * "NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", a sentiment that * I uphold. * @license MIT License */ (function($){'use strict';var escape=/["\\\x00-\x1f\x7f-\x9f]/g,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},hasOwn=Object.prototype.hasOwnProperty;$.toJSON=typeof JSON==='object'&&JSON.stringify?JSON.stringify:function(o){if(o===null){return'null'} var pairs,k,name,val,type=$.type(o);if(type==='undefined'){return undefined} if(type==='number'||type==='boolean'){return String(o)} if(type==='string'){return $.quoteString(o)} if(typeof o.toJSON==='function'){return $.toJSON(o.toJSON())} if(type==='date'){var month=o.getUTCMonth()+1,day=o.getUTCDate(),year=o.getUTCFullYear(),hours=o.getUTCHours(),minutes=o.getUTCMinutes(),seconds=o.getUTCSeconds(),milli=o.getUTCMilliseconds();if(month<10){month='0'+month} if(day<10){day='0'+day} if(hours<10){hours='0'+hours} if(minutes<10){minutes='0'+minutes} if(seconds<10){seconds='0'+seconds} if(milli<100){milli='0'+milli} if(milli<10){milli='0'+milli} return'"'+year+'-'+month+'-'+day+'T'+hours+':'+minutes+':'+seconds+'.'+milli+'Z"'} pairs=[];if($.isArray(o)){for(k=0;k