Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Result<Value, Error>
Expand description

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.

ยงErrors

Error when the text is not valid JSON, with where parsing gave up.