pub fn parse(json: &[u8]) -> Result<Value<'_>, Error>
Available on crate feature json only.
Expand description

Parses JSON-compliant bytes into Value

Errors

If and only if json is not valid JSON.

Panics

If and only if there is not enough memory to allocate.