Skip to main content

validate

Function validate 

Source
pub fn validate(s: &str) -> Result<(), JsonError>
Expand description

Checks that the whole of s is a single valid JSON value (surrounding spaces are accepted).