use-json
Practical JSON utility primitives for lightweight inspection, detection, quoting, and formatting.
Warning: versions below
0.3.0are experimental and may change as the crate matures.
Example Usage
use ;
let compact = compact_json_basic;
let quoted = quote_json_string;
assert_eq!;
assert_eq!;
assert_eq!;
Scope
- small JSON shape and primitive detection helpers
- conservative quoting and escaping helpers for strings
- whitespace compaction that preserves content inside JSON strings
Non-Goals
- a full JSON parser
- JSONPath support
- schema validation
- a replacement for
serde_json
License
Licensed under either of the following, at your option:
- MIT License
- Apache License, Version 2.0