7 lines
952 B
Plaintext
7 lines
952 B
Plaintext
Announcing microjson
|
|
<p>If you’ve ever wanted a JSON parser that can unpack directly to fixed-extent C storage (look, ma, no malloc!) I’ve got the code for you.</p>
|
|
<p>The <a href="http://www.catb.org/esr/microjson/">microjson</a> parser is tiny (less than 700LOC), fast, and very sparing of memory. It is suitable for use in small-memory embedded environments and deployments where malloc() is forbidden in order to prevent leaked-memory issues.</p>
|
|
<p>This project is a spin-out of code used heavily in GPSD; thus, the code has been tested on dozens of different platforms in hundreds of millions of deployments.</p>
|
|
<p>It has two restrictions relative to standard JSON: the special JSON “null” value is not handled, and object array elements must be homogenous in type.</p>
|
|
<p>A programmer’s guide to building parsers with microjson is <a href="http://www.catb.org/esr/microjson/">included</a> in the distribution.</p>
|