pub fn validate_str(string: &str) -> Result<JsonType, Error>
A convenient method to check and consume JSON from an str.
str