Function cedar_policy::ffi::format_json
source · pub fn format_json(json: Value) -> Result<Value, Error>
Expand description
Apply the Cedar policy formatter. Input is a JSON encoding of
FormattingCall
and output is a JSON encoding of FormattingAnswer
.
§Errors
Will return Err
if the input JSON cannot be deserialized as a
FormattingCall
.