JSMN: JSON parsing library

At this point, it seems to me that JSON is ubiquitous for data exchange. Nearly every project I have been involved in over the past few years has used JSON to describe data, configuration, or even manufacturing test results.

JSON's simplicity lends itself well to embedded systems. JSON data is very easy to parse. JSON's simplicity leads to very small, simple JSON libraries that are usable on embedded systems.

If your system needs to parse JSON data, take a look at jsmn (pronounced "jasmine"). jsmn is a lightweight C-based JSON parser (just 2 APIs!) that focuses on robustness, speed, portability, and simplicity. The code works on x86, ARM, and AVR and has no external dependencies (including libc). These factors all call out to me as an embedded developer.

I recommend taking a look at the jsmn website and familiarizing yourself with the library. I think you will find it to be an attractive option for your embedded systems.

You can find the jsmn source on Github. Happy hacking!

Further Reading