pub trait CanonicalJson {
// Required method
fn to_canonical_json_value(&self) -> SpecResult<Value>;
// Provided method
fn to_canonical_json(&self) -> SpecResult<String> { ... }
}Expand description
Trait for deterministic canonical JSON serialization.
Required Methods§
Sourcefn to_canonical_json_value(&self) -> SpecResult<Value>
fn to_canonical_json_value(&self) -> SpecResult<Value>
Serialize this value into canonical JSON value form.
Provided Methods§
Sourcefn to_canonical_json(&self) -> SpecResult<String>
fn to_canonical_json(&self) -> SpecResult<String>
Serialize this value into deterministic canonical JSON text.