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


COPYINGproject license
NEWSproject news
microjson-1.3.tar.gzgzipped source tarball
mjson.htmlmjson(1)
microjson.htmlBuilding static JSON parsers with microjson

The project repository is at http://thyrsus.com/gitweb/?p=microjson.git.

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

Recent Changes

   Add a time_t type that is an RFC3339 date, stored as Unix seconds.