#jsmn - minimalistic JSON parser and serializer

1 messages · Page 1 of 1 (latest)

brazen hemlock
#

https://github.com/smokku/jsmn-zig

This Zig implementation is a direct port of Serge Zaitsev's https://github.com/zserge/jsmn

GitHub

jsmn JSON parser and serializer in Zig. Contribute to smokku/jsmn-zig development by creating an account on GitHub.

GitHub

Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket - GitHub - zserge/jsmn: Jsmn is a world fastest JSON parser/tokenizer. This is the offici...

hard latch
#

How would you compare jsmn approach to the Zig json parsers that are included in std lib?

brazen hemlock
#

std.json streaming parser is similar in emitting a series of tokens.
jsmn tokens are more bare-bones leaving more work to the user, but also not doing any work you may not need

#

i.e. jsmn does not differ primitives to Number, True, False, Null. does not check whether Numbers are simple. does not check whether string has quoting inside

#

if you need it, you need to parse slices yourself

#

this is needed if you are building a JSON representation tree in memory (which std.json features and jsmn does not)