6 releases

0.1.5 Feb 12, 2021
0.1.4 Feb 8, 2020

#2273 in Parser implementations

MIT license

17KB
380 lines

jsmn (pronounced like 'jasmine') is Rust port of a minimalistic JSON parser. It can be easily integrated into resource-limited or embedded projects.

Philosophy

Most JSON parsers offer you a bunch of functions to load JSON data, parse it and extract any value by its name. jsmn proves that checking the correctness of every JSON packet or allocating temporary objects to store parsed JSON fields often is an overkill.

JSON format itself is extremely simple, so why should we complicate it?

jsmn is designed to be robust (it should work fine even with erroneous data), fast (it should parse data on the fly), portable. And of course, simplicity is a key feature

  • simple code style, simple algorithm, simple integration into other projects.

No runtime deps