I wrote a JSON-Parser in C with minimal validation in ~250 LOC that does not allocate memory, but leaves the type check and conversion to the user.
https://github.com/vurtun/json
http://blog.llvm.org/2010/01/address-of-label-and-indirect-b...
A venerable interpreter implementation trick.