title: Download fails for large json string -Angular JS
body: <p>I've written an application in angular for file download, the application is working fine only for small json string, but comes to large string the download fails. Can anyone please tell me some solution for this.</p>
  
  <p>I'm using REST webservice</p>
  
  <pre><code> var json = _.getJson(); // here json value object be received from a script function 
   var myURL = 'rest/myMethod?jsonValue=' + JSON.stringify(json);
    _.downloadFile(myURL);
  </code></pre>
  
  <p>The downloadFile method :</p>
  
  <pre><code>downloadFile: function(URL)
  {
      $.fileDownload(URL).done(function(e, response)
      {
        console.log('download success');
      }).fail(function(e, response)
      {
        console.log('fail');
      });
  }
  </code></pre>