pub fn validate(s: &str) -> Result<(), JsonError>
Checks that the whole of s is a single valid JSON value (surrounding spaces are accepted).
s