ruma_common::canonical_json

Function try_from_json_map

Source
pub fn try_from_json_map(
    json: Map<String, Value>,
) -> Result<CanonicalJsonObject, CanonicalJsonError>
Available on crate feature canonical-json only.
Expand description

Fallible conversion from a serde_json::Map to a CanonicalJsonObject.