JSON option to allow fragments not set

I can see this question has been asked before but can't find that anyone has accepted an answer anywhere. My error is.
NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.