title: Mozilla Firefox error "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"
body: <p>When I am trying to get response from my API I am getting  <strong>JSON.parse: unexpected end of data at line 1 column 1 of the JSON data</strong> this error in <strong>Mozilla Firefox</strong> Browser but not in <strong>Chrome</strong> browser.</p>
  
  <pre><code>            $.ajax({
                      dataType: 'json',
                      url: myApiUrl,
                      data: data,
                      type: 'post',
                      success: function(result)
                      { alert("success");}
                    });
  </code></pre>
  
  <p>Note : assume that myApiUrl variable contains my url and 
  data contains my parameters.</p>
  
  <p>Following is my Json Response </p>
  
  <pre><code>{"type":"Sale","status":1,"transaction_id":"T4U_122a668896_4bdadcc57","ErrorMSG":"Success","ErrorCode":"00","passive_data":"####aaaa","total":"10.47","time":"31-01-2017 09:56:55"}
  </code></pre>
  
  <p>How should I overcome that problem?</p>