Skip to main content

read_json_with

Function read_json_with 

Source
pub fn read_json_with(text: &str, limits: &Limits) -> Result<Doc, OmnistError>
Expand description

read_json under explicit Limits.

Returns the Limits::validate error unchanged when the limits are out of range. A limit crossed is a crate::error::DocumentError (document.limit.depth / document.limit.nodes at $, document.limit.int-digits at the path of the over-long integer), never a ParseError.