When JSON string contains unicodes between u0000 and u001f, JSONKit parser fails to work properly. and throws a error as “Illegal \u Unicode escape sequence”.
This is a known issue(link) but seems like the author thought it’s a fault caused by content provider and didn’t intend to have any fix on this issue.
In this particular case, these services are very clearly “in the wrong”. RFC 4627 is unambiguous that characters <
0x20are verboten. In cases like there, where something is clearly violating the standard, my default response is that “It’s the other persons (web service) problem.” The standard is the standard, and it is Right™, even its mistakes.
But in fact there are many JSON encoder may generates JSON string contains invalid characters < 0x20 including Python2.6,
Edit JSONKit.m file:
1 2 3 4 5 6 7 8 9 10