Summary

Tiny JSON parser in C that uses only fixed-extent storage.

This code parses the largest subset of JSON that can be unpacked into static C structures, without using malloc(3). It is very small and very low-footprint, intended for use in constrained embedded environments. It may also be of interest for code where malloc is verboten to reduce reliability and security vulnerabilities.

Resources


READMEroadmap file
microjson-1.4.tar.gzgzipped source tarball
COPYINGproject license
NEWSproject news
mjson.htmlmjson(3)
microjson.htmlBuilding static JSON parsers with microjson

The project repository is at https://gitlab.com/esr/microjson.

If you appreciate this code (and especially if you make money by using it) please support me on Patreon.

Recent Changes

   Add a belt-and suspenders bounds check side-ported from the GPSD code.

Supporters

This work is funded by...

My Bronze supporters on Patreon: Martin Hohenberg, Jae Yang, Daniel Garber, Kyle Burkholder, Mike Nichols, Mark Ping, Tom Taylor, Arnold F. Williams, George Brower, Michael Nygard, Brendan Long, Sven Dowideit, Dave Witten, Jonathan Cast, James Cronin, David L. Jessup, Christopher Chang, Killer Delicious, Jacob Lyles, Neil Anuskiewicz, Mordant, Clemens Ladisch, Wojciech Woytniak, Masa Bando, John Carmack, Xingyu Wang, Jane Tang.

My Institutional supporters on Patreon: Jason Azze and the DEVOPS team at his $DAYJOB.