radicle-heartwood-lfs/radicle/src/canonical.rs

17 lines
680 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! A [Canonical JSON] formatter that escapes control characters. This
//! differs to the olpc-cjson standard.
//!
//! The [`olpc-cjson`] crate itself states:
//!
//! > OLPCs canonical JSON specification is subtly different from
//! > other “canonical JSON” specifications, and is also not a strict
//! > subset of JSON (specifically, ASCII control characters 0x000x1f
//! > are printed literally, which is not valid JSON). Therefore,
//! > serde_json cannot necessarily deserialize JSON produced by this
//! > formatter.
//!
//! [Canonical JSON]: http://wiki.laptop.org/go/Canonical_JSON
//! [olpc-json]: https://docs.rs/olpc-cjson/0.1.2/olpc_cjson
pub mod formatter;