title: AFNetworking error parsing JSON
body: <p>I'm using AFNetworking 2.3 API to fetch currency exchange rates which returns JSON. In addition to HTTP the API also supports HTTPS. I'm using a subclass of AFHTTPSessionManager and set the response serializer to AFJSONResponseSerializer.</p>
  
  <p>If I use HTTP everything works as expected, however once I use HTTPS, I receive the following error</p>
  
  <blockquote>
    <p>Error Domain=NSCocoaErrorDomain Code=3840 "The data couldn’t be read
    because it isn’t in the correct format." (JSON text did not start with
    array or object and option to allow fragments not set.)
    UserInfo=0x60000046c700 {NSDebugDescription=JSON text did not start
    with array or object and option to allow fragments not set.}</p>
  </blockquote>
  
  <p>I checked the response data and it appears identical to the HTTP response.  Also the response code is 200 and the header indicates </p>
  
  <blockquote>
    <p>"Content-Type" = "application/json; charset=utf-8";</p>
  </blockquote>
  
  <p>If I entry the url directly into safari the data appears as expected. I also tried setting the reading options of the response serializer to NSJSONReadingAllowFragments, but no change.</p>
  
  <p>Is this a server side issue? What else could I do to debug this?</p>