json5format
json5format copied to clipboard
JSON5 (a.k.a., "JSON for Humans") formatter that preserves contextual comments
OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=6258443249385472 for details and reproducers. This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49666 and will auto-close if the status changes there. If...
The Rust `serde` (serialize/deserialize) API includes a JSON5 parser that converts the data into a Rust in-memory representation. This parser currently ignores comments. The data can be converted back into...
I have a design document that describes how one might generate a pure JSON document that includes a loss-less representation of the JSON5 data _and_ it's comments, including all metadata...
Some initial fuzzing is now performed in CI by oss-fuzz. It would be good to implement more fuzzers.
Depending on the formatter configuration, some nested levels will not be streamable, but for any layer that does not reorder its elements, that layer can be streamed. In particular, the...
The current [regex parsing strategy] looks like it works quite well and is very well tested, but I have concerns about the efficiency and maintainability of regex-based parsers. This (really...
Simple quoted strings with inconsistent quotes might look like: ```json5 [ 'string1', "string2", ] ``` The current version (0.1.0) does not change the quote style from the original input, in...
Fuchsia example where the diff was largely going from manually formatted to auto-formatted using this, and previous single-line declarations expanded: https://fuchsia-review.googlesource.com/c/fuchsia/+/376278/14..16/src/sys/bootstrap/meta/fshost.cml
Basically, enable `cargo install json5format` to build an executable that can be used in the CLI. There seems to be a pretty well done implementation as the example, so perhaps...
OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=5798178911551488 for details and reproducers. This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63220 and will auto-close if the status changes there. If...