Skip to main content

Module parse

Module parse 

Source
Expand description

JSON parsing.

Parse is the entry point: Value::parse_str, Value::parse_slice and friends return the parsed value together with a CodeMap. When the code map is not needed, the parse_str_value / parse_slice_value functions take a faster path that skips span tracking.

Parsing is strict by default; Options relaxes surrogate and codepoint handling.

Structs§

Options
Parser options.
Parser
JSON parser.

Enums§

Context
Parsing context.
Error
Parse error.

Traits§

Parse
JSON parsing methods.

Functions§

is_whitespace
Checks if the given char c is a JSON whitespace.
parse_slice_value
Parses a Value from &[u8] without building a CodeMap.
parse_slice_value_with
Like parse_slice_value but with a custom Options.
parse_str_value
Parses a Value from a &str without building a CodeMap.
parse_str_value_with
Like parse_str_value but with a custom Options.