pub fn validate_json<'de, S>(value: &'de str, strict: bool) -> Result<()>
where S: Serialize + Deserialize<'de>,
Expand description

Validate that the given JSON resolves to a valid instance of type S.

If strict is true, verify that reserializing the instance results in the same fields.