title: Javascript truncating using JSON.Stringify
body: <p>I am trying to take an array of address, names, latitude, longitude, etc., then encoding them using <code>JSON.stringify</code> to pass it to a 2nd HTML window that will then map the addresses.</p>
  
  <p>I am hitting a problem when I use <code>JSON.stringify</code> where my data is not fully coming through.  Somewhere around 4000 characters my encoded string is truncating.</p>
  
  <p>My issue comes at the line:</p>
  
  <pre><code>var customParameters = encodeURIComponent(JSON.stringify(AddressAray));
  </code></pre>
  
  <p>Full code section:</p>
  
  <pre><code>var AddressAray = new Array();
  debugger;
  for (i = 0; i &lt; selectedItems.length; i++) {
      //MY DATA IS ENTERED HERE AND WORKS FINE, 
      //ADDED TO AddressAray with all information.
  
      AddressAray.push(MixedFields);
  },
  function (error) {
      alert('GetCurrentUserTerritory: ' + error.message);
  },
  false);
  }
  
  var customParameters = encodeURIComponent(JSON.stringify(AddressAray));
  Xrm.Utility.openWebResource("../WebResources/ddscrm_/webpages/CRMPRD.XRM.GoogleMaps.html",customParameters);
  }
  </code></pre>