Re:Show HN: Parson, lighweight json parser in C
by udp on Sunday October 28, 2012 @12:39PM
(#4709306)
Well, you beat json-parser on SLOC. :-)
Main differences are that you use recursion instead of a stack, and that you dynamically resize your buffers as you parse (whereas json-parser passes through the JSON twice so that it knows exactly how much memory to allocate).
Main differences are that you use recursion instead of a stack, and that you dynamically resize your buffers as you parse (whereas json-parser passes through the JSON twice so that it knows exactly how much memory to allocate).