by jerf · 15y ago · 0 comments
A JSON parser? Heck yes, even with the UTF-8 handling. It wouldn't even necessarily suck.
So, in short, it's possible to write a very high performance JSON serializer and deserializer in ObjC in ~2K lines of code. For JSONKit, most it is actually pure C (which in turn uses Core Foundation, which is a pure C API interface version for the equivalent native ObjC objects), with public API ObjC stub bindings making use of the C code.
This is a pretty good argument against XML.
[1]: http://www.w3.org/TeamSubmission/turtle/ [2]: http://drobilla.net/software/serd/