Function ruma::canonical_json::try_from_json_map
source ยท pub fn try_from_json_map(
json: Map<String, Value>,
) -> Result<BTreeMap<String, CanonicalJsonValue>, CanonicalJsonError>
Expand description
Fallible conversion from a serde_json::Map
to a CanonicalJsonObject
.