Function ruma_signatures::to_canonical_json
source · Expand description
Converts a JSON object into the “canonical” string form, suitable for signing.
Parameters
- value: The
serde_json::Value
(JSON value) to convert.
Errors
Returns an error if the provided JSON value is not a JSON object.