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