Discussion:
parsing JSON
(too old to reply)
Yazz
2024-09-06 18:53:40 UTC
Permalink
Hello, I want to read json file and process it's data in comfortable way.
Could you recommend a library that is fast and nice to use?
Thank you in advance!
Lawrence D'Oliveiro
2024-09-07 00:03:19 UTC
Permalink
Post by Yazz
Hello, I want to read json file and process it's data in comfortable way.
I see there are standard Debian packages for these:
<https://github.com/DaveGamble/cJSON>, <https://jqlang.github.io/jq>,
<https://github.com/zserge/jsmn>, <https://github.com/json-c/json-c/wiki>,
<https://wiki.gnome.org/Projects/JsonGlib>,
<https://lloyd.github.io/yajl/>, <https://github.com/ibireme/yyjson>.

This one is more general than just JSON:
<https://github.com/farsightsec/fstrm>.

Disclaimer: I haven’t used any of these--not in my own code, anyway.

Quite an embarrassment of riches, anyway ...
Rene Kita
2024-09-07 06:59:25 UTC
Permalink
Post by Yazz
Hello, I want to read json file and process it's data in comfortable way.
Could you recommend a library that is fast and nice to use?
Thank you in advance!
I used microjson on multiple embedded projects, it's fast and I found
it easy to use. The actual homepage[0] gives currently an SSL error, but
there is also a mirror on GitLab[1].

[0]: https://www.catb.org/~esr/microjson/microjson.html
[1]: https://gitlab.com/esr/microjson
Jan van den Broek
2024-09-07 12:55:41 UTC
Permalink
Post by Yazz
Hello, I want to read json file and process it's data in comfortable way.
Could you recommend a library that is fast and nice to use?
Thank you in advance!
I use cJSON:
https://github.com/DaveGamble/cJSON?tab=readme-ov-file#parsing-json
--
Jan v/d Broek ***@dds.nl

"Ich kenne das Leben, ich bin im Kino gewesen."
Jaro
2024-09-07 19:54:43 UTC
Permalink
Post by Jan van den Broek
Post by Yazz
Hello, I want to read json file and process it's data in comfortable way.
Could you recommend a library that is fast and nice to use?
Thank you in advance!
https://github.com/DaveGamble/cJSON?tab=readme-ov-file#parsing-json
thanks! I'll try that!

Loading...