php-json-comment
Lightweight JSON comment and trailing comma stripper library for PHP with support for literal newlines and nested JSON strings. (by adhocore)
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)
Our great sponsors
php-json-comment | jsonc | |
---|---|---|
1 | 1 | |
31 | 15 | |
- | - | |
2.0 | 0.9 | |
7 months ago | about 1 year ago | |
PHP | 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.
php-json-comment
Posts with mentions or reviews of php-json-comment.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Library to support JSON with comments and trailing comma in PHP
Unlike XML and YAML, JSON lacks native support for comments which is often missed. In addition, the trailing comma which would make diff on multiline value neat is also not available in JSON. If you are on PHP, then here is a little library adhocore/json-comment to fix it in the userland.
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.
What are some alternatives?
When comparing php-json-comment and jsonc you can also consider the following projects:
psl - 📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers
json5 - JSON5 — JSON for Humans
Bludit - Simple, Fast, Secure, Flat-File CMS
Polr - :aerial_tramway: A modern, powerful, and robust URL shortener
JsonMapper - Map nested JSON structures onto PHP classes