Function cedar_policy::ffi::format_json_str

source ·
pub fn format_json_str(json: &str) -> Result<String, Error>
Expand description

Apply the Cedar policy formatter. Input and output are strings containing serialized JSON, in the shapes expected by format_json().

§Errors

Will return Err if the input cannot be converted to valid JSON or deserialized as a FormattingCall.