Best library for JSON file parsing. Which one?

Hello all!

What is the best library for JSON files parsing?
Found few of them:

Could someone write out some info about usage of any of them. My goals read/write JSON and validating it. My JSON files is kind of configs that must be correctly maintained because there are automation that is written with Perl/Rex and JSON files kind of universal configuration instead of native Erlang and native Perl config files. Both of them is incompatible. That’s why trying to use JSON files as configuration files

1 Like

json is now part of erlang STDLIB: json — stdlib v6.0
Probably best to start there.

7 Likes

There is also Euneus. It is built on top of the new OTP json module. Works for OTP >= 24 if json_polyfil is also installed.

1 Like

What do you mean by “validating” JSON?
Are you looking for support for JSON Schema https://json-schema.org/ ?
There is a JSON Scheme validator for Erlang called JeSSE
https://github.com/for-GET/jesse but I have not tried it.

There’s something perverse about building elaborate pointer and schema languages about a data interchange format that was supposed to be ultra-simple and lightweight. Such is the nature of our industry.

1 Like

That is f-wording awesome! Didn’t know it. Will try it out.

And thx to all. This thread became kind of accumulator of JSON library links :slight_smile:

1 Like