Al recuperar un JSON con AFJSONRequestOperation me retorna el siguiente error:
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be
completed. (Cocoa error 3840.)" (JSON text did not start with array or
object and option to allow fragments not set.) UserInfo=0x9b32be0
{NSDebugDescription=JSON text did not start with array or object and
option to allow fragments not set.
He probado de usar:
operation.JSONReadingOptions = NSJSONReadingAllowFragments;`
Pero me retorna lo siguiente:
-[NSNull JSONData]: unrecognized selector sent to instance 0x1e08068 2013-09-21 01:04:43.994 RecipeBook[2169:a0b] Terminating app due
to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull
JSONData]: unrecognized selector sent to instance 0x1e08068'
First throw call stack: