tree: c66e34ea4fa7559adb886ebac9a1cb2d92589af7 [path history] [tgz]
  1. examples/
  2. src/
  3. tests/
  4. .cargo-checksum.json
  5. Cargo.lock
  6. Cargo.toml
  7. code-of-conduct.md
  8. CONTRIBUTING.md
  9. LICENSE
  10. README.md
  11. rustfmt.toml
third_party/rust_crates/vendor/json5format/README.md

json5format

json5format is a general purpose Rust library that formats JSON5 (a.k.a., “JSON for Humans”), preserving contextual line and block comments.

The json5format library includes APIs to customize the document format, with style options configurable both globally (affecting the entire document) as well as tailoring specific subsets of a target JSON5 schema. (See the Rust package documentation for more details and examples.)

The json5format package also bundles a sample command line tool that formats JSON5 documents using a basic style with some customizations available through command line options. (After cargo build, run ./target/debug/examples/formatjson5 --help for more details.)

NOTE: This is not an officially supported Google product.