title: Sharepoint Check In Rest API Error 'Not well formatted JSON stream'
body: <p>The same Check In Rest API working in Sharepoint provider hosted low trust app but in <strong>High trust app it gives Error  'Not well formatted JSON stream'</strong></p>
  <pre class="lang-js prettyprint-override"><code>    &lt;!-- language: lang-js --&gt;
      var spUrl = appweburl + &quot;/_api/SP.AppContextSite(@target)/web/getfilebyserverrelativeurl('&quot; + fnGetServerRelPath(sFileRef) + &quot;')/checkin(comment='Check-In',checkintype=0)?@target='&quot; + hostweburl + &quot;'&quot;;
       var executor = new SP.RequestExecutor(appweburl);
       executor.executeAsync({
                              url: spUrl,
                              method: &quot;POST&quot;,
                              headers: { &quot;Accept&quot;: &quot;application/json; odata=verbose&quot; },
                              binaryStringResponseBody: false,
                              success: function (data) { },
                              error: function (data) { fnUpdateFileFailure(data) },
                              state: &quot;Update&quot;
                  });
  </code></pre>