pub fn parse(text: &str) -> Result<Value, Error>
Read a complete JSON document. Trailing content after the top-level value is an error, so a truncated or double-pasted file is caught here rather than silently half-read.
Error when the text is not valid JSON, with where parsing gave up.
Error