I am sure that your line has a non-printable character, which makes the data invalid.
Declare a variable NSError* error, then call the method [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]to try to convert JSON: obviously, if your data is considered invalid, it will return nil, but at least you will have a description of what is wrong in NSError* errorafter that.
NSData* data = ...
NSError* error = nil;
id obj = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error];
NSLog(@"obj: %@ ; error: %@", error);