pub fn object_top_level(body: &[u8]) -> Result<TopLevel, JsonError>Expand description
Locates the top level of the JSON object in body, validating the whole
document as it goes.
ยงErrors
JsonError::NotAnObject if body is valid JSON but not an object,
JsonError::Invalid if it is not valid JSON.