cedar_policy::ffi

Function check_parse_context_json

Source
pub fn check_parse_context_json(json: Value) -> Result<Value, Error>
Expand description

Check whether a context successfully parses. Input is a JSON encoding of ContextParsingCall and output is a JSON encoding of CheckParseAnswer.

ยงErrors

Will return Err if the input JSON cannot be deserialized as a Context.