jsonc
Golang (v1.13+) JSON5 preprocessor supporting comments, trailing comma, unquoted key/single-quoted string, hex number, trailing decimal point, literal newlines and more. (by adhocore)
rjson
"readable JSON" - JSON-compatible codec with a few tweaks to make it quicker to write and easier to read (by rogpeppe)
jsonc | rjson | |
---|---|---|
1 | 1 | |
15 | 5 | |
- | - | |
0.9 | 10.0 | |
about 1 year ago | over 8 years ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsonc
Posts with mentions or reviews of jsonc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-12.
-
Wrote yet another JSON parser supporting comments, trailing commas, and multiline strings
jsonc is a Golang package for parsing JSON data with comments- both single (//) and multiline (/* */). It also supports trailing commas at the end of array and object notations, and literal line feeds in string values.
rjson
Posts with mentions or reviews of rjson.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-12.
-
Wrote yet another JSON parser supporting comments, trailing commas, and multiline strings
Requiring users to fully load in all JSON as a []byte or a string is a big kick in the teeth. You ought to be able to stream it through an io.Reader. You should either implement your code as an io.Reader wrapper, or go ahead and just fork encoding/json (or some other JSON library) to implement your changes, like this one did.
What are some alternatives?
When comparing jsonc and rjson you can also consider the following projects:
json5 - JSON5 — JSON for Humans