Skip to main content

parse

Function parse 

Source
pub fn parse(src: &str) -> Result<Node, String>
Expand description

Parse one JSON document into a Node.

The whole document is validated once (syntax and trailing content), then its nesting depth is measured with a linear scan (MAX_DEPTH) before the recursive build, so the build depth is bounded. Duplicate keys within one object are an error.