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.
|microjson-1.6.tar.gz||gzipped source tarball|
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.
It's now possible to match all previously unspecified fields ignored. Whitespace after values is now skpped properly in more circumstances. Integer values 0 and 1 are accepted for bools.
This work is funded by...
My Bronze supporters: 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, Steven Evans, Jan Roudaut, Hsueh Sung, Ken LaCrosse, taishi28012, John Simpson, Jerod Tufte, Paul Abbott, Stan Witherspoon, Donald Greer, Gratiela Chergu, Michael Ciagala, Dale Carstensen, Chip Davis, Liudmilla Karukina, Jim McCloskey, Dewey Sasser, Hal Hildebrand, Connor Wood, Ken Kennedy, darrin, Mark Gardner, William Christensen, Malcolm Ocean, Rod Davenport, Nodarius Darjania, Cheryl Evry, Wenfeng Liang, Irving Rivas, Bill Soistman, ReallyBored, Άρης Δάσος, Ron Lauzon, TheFred, Paul Theodoropolous, Doug Phillips, Les Vogel, Matt Pollard, Andres Cordova, Umgeher Torgersen, Syeed Ali.
My Institutional supporters: Jason Azze and the DEVOPS team at his $DAYJOB, Christoph Happle, Symmetry Investments, Willam Duff, Mark Atwood.
Or contribute via SubscribeStar.