(function(a){m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},a.toJSON=function(j,g){var c,f,e,b,h=/["\\\x00-\x1f\x7f-\x9f]/g,d;switch(typeof j){case"string":return h.test(j)?'"'+j.replace(h,function(i){var k=m[i];if(k){return k}k=i.charCodeAt();return"\\u00"+Math.floor(k/16).toString(16)+(k%16).toString(16)})+'"':'"'+j+'"';case"number":return isFinite(j)?String(j):"null";case"boolean":case"null":return String(j);case"object":if(!j){return"null"}if(typeof j.toJSON==="function"){return a.toJSON(j.toJSON())}c=[];if(typeof j.length==="number"&&!(j.propertyIsEnumerable("length"))){b=j.length;for(f=0;f<b;f+=1){c.push(a.toJSON(j[f],g)||"null")}return"["+c.join(",")+"]"}if(g){b=g.length;for(f=0;f<b;f+=1){e=g[f];if(typeof e==="string"){d=a.toJSON(j[e],g);if(d){c.push(a.toJSON(e)+":"+d)}}}}else{for(e in j){if(typeof e==="string"){d=a.toJSON(j[e],g);if(d){c.push(a.toJSON(e)+":"+d)}}}}return"{"+c.join(",")+"}"}}})(jQuery);