RFC 8785 Canonical JSON serialization for Rust
This crate provides a serde_json::Formatter to serialize data in canonical JSON form as defined by RFC 8785.
use CanonicalFormatter;
use Serialize;
use json;
let value = json!;
let mut buf = Vecnew;
let mut ser = with_formatter;
value.serialize.unwrap;
assert_eq!;
History
This repository was originally forked from https://github.com/engineerd/cjson as it is unmaintained. But it ended up being redesigned to use the "formatter" approach that is used by olpc-cjson.