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
.