Re: [dev] json

From: Wolf <wolf_AT_wolfsden.cz>
Date: Thu, 6 Jun 2019 17:48:37 +0200

On , Teodoro Santoni wrote:
> I like jsmn [1] because I like SAX or PULL style parsers.
> There's a list of C JSON parsers at json.org.
>
> [1]: https://github.com/zserge/jsmn

Thing to keep in mind is that jsmn does not transform (unescape)
strings. So for example json

        "\u732b\u304c\u5927\u597d\u304d"

will get you string

        \u732b\u304c\u5927\u597d\u304d

instead of

        猫が大好き

That might or might not be a problem for you depending on your use case.


I personally use http://www.digip.org/jansson/ , not sure how "suckless"
it is though.

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Received on Thu Jun 06 2019 - 17:48:37 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 06 2019 - 18:36:08 CEST