pub fn validate(json: &[u8], depth: i64, flags: Flags) -> Result<(), Error>Expand description
json_validate($json, $depth, $flags): Ok(()) when PHP returns true.
Only JSON_INVALID_UTF8_IGNORE is accepted in flags (PHP throws
ValueError for anything else). Property names starting with NUL are
valid here (they only fail when decoding to stdClass).