javascripts/right-json.js in right-rails-0.4.4 vs javascripts/right-json.js in right-rails-0.5.0
- old
+ new
@@ -1,6 +1,6 @@
/**
* The JSON encode/decode feature
*
- * Copyright (C) 2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
*/
-eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("14 12=(11(d){14 a=/[\\u52\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g,f={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g;11 e(s){3 s.13(q,11(c){3 f[c]||'\\\\u'+('52'+c.22(0).30(16)).43(-4)})};14 z=11(n){3(n<10?'0':'')+n};14 g=d.15||11(v){if(v===25)3 '25';19 if(v.to12)3 v.to12();19 switch(typeof(v)){26 'boolean':3 33(v);26 'number':3 33(v+0);26 'string':3 '\"'+e(v)+'\"';26 'object':if(v 21 Array)3 '['+v.map(12.15).53(',')+']';19 if(v 21 56)3 v.55UTCFullYear()+'-'+z(v.55UTCMonth()+1)+'-'+z(v.55UTC56())+'T'+z(v.55UTCHours())+':'+z(v.55UTCMinutes())+':'+z(v.55UTCSeconds())+'.'+z(v..55Milliseconds())+'Z';19{14 r=[];for(14 k in v)r.push(12.18(k)+\":\"+12.18(v[k]));3 '{'+r.53(',')+'}'}}};14 p=d.29||11(s){if(is33(s)&&s){s=s.13(a,11(b){3 '\\\\u'+('52'+b.22(0).30(16)).43(-4)});if(/^[\\],:{}\\s]*$/.test(s.13(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').13(/\"[^\"\\\\\\n\\r]*\"|true|false|25|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').13(/(?:^|:|,)(?:\\s*\\[)+/g,'')))3 eval('('+s+')')}39 \"12 29 error: \"+s};3{15:g,29:p,18:g,23:p}})(self.12);if(window['31'])(11(C){14 a=C.54,o=C.55;$ext(C,{54:11(v){3 a.51(27,12.18(v))},55:11(){3 12.23(o.51(27))}})})(31.24);Xhr.24.sanitized12=11(){try{3 12.23(27.text)}catch(e){if(27.secure12)39 e;19 3 25}};",",,,return,,,,,,,,function,JSON,replace,var,stringify,,,encode,else,,instanceof,charCodeAt,decode,prototype,null,case,this,,parse,toString,Cookie,toJSON,String,u200c,ufff0,u00ad,ufeff,u206f,throw,u2060,u0604,u202f,slice,uffff,u070f,u2028,u200f,u17b5,u0600,u17b4,call,0000,join,set,get,Date".split(",")));
+eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("15 12=(11(d){15 a=/[\\u52\\43\\49-\\45\\46\\50\\48\\37-\\47\\44-\\42\\40-\\38\\34\\36-\\39]/g,f={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\43\\49-\\45\\46\\50\\48\\37-\\47\\44-\\42\\40-\\38\\34\\36-\\39]/g;11 e(s){3 s.14(q,11(c){3 f[c]||'\\\\u'+('52'+c.22(0).29(16)).41(-4)})};15 z=11(n){3(n<10?'0':'')+n};15 g=d?d.13:11(v){if(v===27)3 '27';18 if(v.to12)3 v.to12();18 switch(typeof(v)){24 'boolean':3 30(v);24 'number':3 30(v+0);24 'string':3 '\"'+e(v)+'\"';24 'object':if(v 21 Array)3 '['+v.map(12.13).53(',')+']';18 if(v 21 56)3 v.55UTCFullYear()+'-'+z(v.55UTCMonth()+1)+'-'+z(v.55UTC56())+'T'+z(v.55UTCHours())+':'+z(v.55UTCMinutes())+':'+z(v.55UTCSeconds())+'.'+z(v.55Milliseconds())+'Z';18{15 r=[];for(15 k in v)r.push(12.23(k)+\":\"+12.23(v[k]));3 '{'+r.53(',')+'}'}}};15 p=d?d.19:11(s){if(is30(s)&&s){s=s.14(a,11(b){3 '\\\\u'+('52'+b.22(0).29(16)).41(-4)});if(/^[\\],:{}\\s]*$/.test(s.14(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').14(/\"[^\"\\\\\\n\\r]*\"|true|false|27|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').14(/(?:^|:|,)(?:\\s*\\[)+/g,'')))3 eval('('+s+')')}35 \"12 19 error: \"+s};3{13:g,19:p,23:g,32:p}})(self.12);if(window['31'])(11(C){15 a=C.54,o=C.55;$ext(C,{54:11(v){3 a.51(26,12.13(v))},55:11(){3 12.19(o.51(26))}})})(31.25);Xhr.25.sanitized12=11(){try{3 12.32(26.text)}catch(e){if(26.secure12)35 e;18 3 27}};",",,,return,,,,,,,,function,JSON,stringify,replace,var,,,else,parse,,instanceof,charCodeAt,encode,case,prototype,this,null,,toString,String,Cookie,decode,toJSON,ufeff,throw,ufff0,u200c,u206f,uffff,u2060,slice,u202f,u00ad,u2028,u0604,u070f,u200f,u17b5,u0600,u17b4,call,0000,join,set,get,Date".split(",")));
\ No newline at end of file