jQuery.json={encode:function(e,c,d){var b;gap="";var a="";if(typeof d==="number"){for(b=0;b<d;b+=1){a+=" "}}else{if(typeof d==="string"){a=d}}rep=c;if(c&&typeof c!=="function"&&(typeof c!=="object"||typeof c.length!=="number")){throw new Error("JSON.encode")}return this.str("",{"":e})},decode:function(text,reviver){var j;var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")},f:function(a){return a<10?"0"+a:a},DateToJSON:function(a){return this.getUTCFullYear()+"-"+this.f(this.getUTCMonth()+1)+"-"+this.f(this.getUTCDate())+"T"+this.f(this.getUTCHours())+":"+this.f(this.getUTCMinutes())+":"+this.f(this.getUTCSeconds())+"Z"},StringToJSON:function(a){return this.valueOf()},quote:function(a){var b={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;c.lastIndex=0;return c.test(a)?'"'+a.replace(c,function(d){var e=b[d];return typeof e==="string"?e:"\\u"+("0000"+d.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'},str:function(l,f){var b="",h="",d,c,m,a,g=h,e,j=f[l];if(j&&typeof j==="object"){switch((typeof j)){case"date":this.DateToJSON(l);break;default:this.StringToJSON(l);break}}if(typeof rep==="function"){j=rep.call(f,l,j)}switch(typeof j){case"string":return this.quote(j);case"number":return isFinite(j)?String(j):"null";case"boolean":case"null":return String(j);case"object":if(!j){return"null"}h+=b;e=[];if(Object.prototype.toString.apply(j)==="[object Array]"){a=j.length;for(d=0;d<a;d+=1){e[d]=this.str(d,j)||"null"}m=e.length===0?"[]":h?"[\n"+h+e.join(",\n"+h)+"\n"+g+"]":"["+e.join(",")+"]";h=g;return m}if(rep&&typeof rep==="object"){a=rep.length;for(d=0;d<a;d+=1){c=rep[d];if(typeof c==="string"){m=this.str(c,j);if(m){e.push(this.quote(c)+(h?": ":":")+m)}}}}else{for(c in j){if(Object.hasOwnProperty.call(j,c)){m=this.str(c,j);if(m){e.push(this.quote(c)+(h?": ":":")+m)}}}}m=e.length===0?"{}":h?"{\n"+h+e.join(",\n"+h)+"\n"+g+"}":"{"+e.join(",")+"}";h=g;return m}}};
