Function ruma_signatures::to_canonical_json [] [src]

pub fn to_canonical_json(value: &Value) -> Result<String, Error>

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.