title: javascript object max size limit
body: <p>I'm trying to pass a JavaScript variable to the server-side using <code>jquery.ajax</code> method.</p>
  
  <p>I'm trying to create a json string, but when the length of variable reaches 10000, no more data is appended to the string.</p>
  
  
  
  <pre><code>var jsonObj = '{"code":"' + code + '","defaultfile":"' + defaultfile + '","filename":"' + currentFile + '","lstResDef":[';
          $.each(keys, function(i, item) {
              i = i + 1;
              var value = $("#value" + i).val();
              var value = value.replace(/"/g, "\\\"");
              jsonObj = jsonObj + '{';
              jsonObj = jsonObj + '"Key":' + '"' + Encoder.htmlEncode($(this).html()) + '"' + "," + '"Value"' + ':' + '"' + Encoder.htmlEncode(value) + '"';
              jsonObj = jsonObj + '},';
              alert(jsonObj);             
          });          
  
          jsonObj = jsonObj + ']}';
  </code></pre>
  
  <p>Here, when the character length of the var jsonObj is 10000, the values following that is not appended.</p>
  
  <p>It looks like there is some limit about that.</p>