cedar_policy::ffi

Function validate_json_str

Source
pub fn validate_json_str(json: &str) -> Result<String, Error>
Expand description

Input and output are strings containing serialized JSON, in the shapes expected by validate_json()

ยงErrors

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