title: NSDebugDescription = "JSON text did not start with array or object and option to allow fragments not set.";
body: <p>I am using <code>AFJSONRequestOperation</code> to request a server and parse the returned JSON response, but while parsing, I got this error:</p>
  
  <pre><code>NSDebugDescription = "JSON text did not start with array or object and option to allow fragments not set.";
  </code></pre>
  
  <p>I checked the API and it's returning JSON data:</p>
  
  <pre><code>header('Content-type: text/json');
  $arr[] = array("Message" =&gt; "update succeeded");
  echo '{"Result":'.json_encode($arr).'}';
  </code></pre>
  
  <p>Any idea how to fix that?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I tried to call the API from browser and include the request in the url, and so I got a valid JSON response:</p>
  
  <pre><code>{"Result":[{"Message":"update succeeded"}]}
  </code></pre>