I have this JSON http://www.progmic.com/ielts/retrive.php that I need to parse. When I do it with NSJSONSerialization, I get “Unescaped control character around character 1981” error.
I need to know:
- What the heck are the unescaped control characters? Is there a list or something?
- How do I get rid of this error? The easiest way?
Thanks in advance.
I added this method to remove the unescaped characters from retrieved string:
After recieving the NSData, I convert it to NSString, call the above method to get a new string with removed control characters and then convert the new NSString to NSData again for further processing.