includes/clientside/static/json.js
changeset 40 723bb7acf914
parent 1 fe660c52c48f
equal deleted inserted replaced
39:c83ff194977a 40:723bb7acf914
    45             b,          
    45             b,          
    46             i,          
    46             i,          
    47             l = input.length,
    47             l = input.length,
    48             v;          
    48             v;          
    49 
    49 
    50         function p(s) {
    50         var p = function (s) {
    51 
    51 
    52             if (b) {
    52             if (b) {
    53                 a.push(',');
    53                 a.push(',');
    54             }
    54             }
    55             a.push(s);
    55             a.push(s);
    76 
    76 
    77         a.push(']');
    77         a.push(']');
    78         return a.join('');
    78         return a.join('');
    79       break;
    79       break;
    80     case 'date':
    80     case 'date':
    81       function f(n)
    81       var f = function (n)
    82       {
    82       {
    83         return n < 10 ? '0' + n : n;
    83         return n < 10 ? '0' + n : n;
    84       }
    84       }
    85       return '"' + input.getFullYear() + '-' +
    85       return '"' + input.getFullYear() + '-' +
    86                  f(input.getMonth() + 1) + '-' +
    86                  f(input.getMonth() + 1) + '-' +
    99       var a = ['{'],  
    99       var a = ['{'],  
   100           b,          
   100           b,          
   101           k,          
   101           k,          
   102           v;          
   102           v;          
   103 
   103 
   104       function p(s)
   104       var p = function (s)
   105       {
   105       {
   106         if (b)
   106         if (b)
   107         {
   107         {
   108           a.push(',');
   108           a.push(',');
   109         }
   109         }