pub fn parse(text: &str) -> Result<Value, ParseError>Expand description
Parses JSON text as JSON.parse does.
Differences from JS are limited to what a Rust String can hold: an
escaped lone surrogate ("\ud800") becomes U+FFFD, and nesting is
limited to MAX_DEPTH.