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)
go-jsoncommentstrip
Library for strip JSON comments (by RaveNoX)
jsonc | go-jsoncommentstrip | |
---|---|---|
1 | 1 | |
15 | 1 | |
- | - | |
0.9 | 10.0 | |
about 1 year ago | about 5 years ago | |
Go | Go | |
MIT License | MIT 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.
go-jsoncommentstrip
Posts with mentions or reviews of go-jsoncommentstrip.
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
As others have said, there's a ton of variations on this theme already on GitHub. You are welcome to write whatever code you want of course, but if it is a problem for you that this market is already saturated, well, do what you need to with that information. This is an example of an io.Reader wrapper. Though there is a performance case to be made for integrating it into a fork of a normal library, because a reader wrapper must parse the JSON, then the decoder has to parse the JSON. The wrapper can parse it "less" but it still has to run a state machine through it. Integrating it into the decoder means the parsing can be done once.
What are some alternatives?
When comparing jsonc and go-jsoncommentstrip you can also consider the following projects:
json5 - JSON5 — JSON for Humans