Crate chisel_json

Source
Expand description

§Another JSON Parser?

The Chisel JSON parser aims to be a relatively simple DOM and SAX parser for JSON, that does not include all the machinery required to support explicit serialisation from, and deserialisation into structs/enums within Rust.

It’s a simple little parser that is intended to allow you to choose how you want to parse a lump of cursed JSON, and then either build/transform a DOM into a richer AST structure, or alternatively just cherry-pick the useful bits of the payload via closures which are called in response to SAX parsing events.

(Because let’s face it, JSON payloads usually come burdened with a whole load of unnecessary crap that you’ll never use).

Modules§

coords
Coordinate structure used to reference specific locations within parser input
lexer
parsers
pointers
results
Error and Result types

Macros§

dom_parser_error
Helper macro for cooking up a ParserError specific to the DOM parser
lexer_error
Helper macro for cooking up a ParserError specific to the lexer
lexer_input_error
sax_parser_error
Helper macro for cooking up a ParserError specific to the SAX parser

Structs§

JsonKeyValue
Structure representing a JSON key value pair

Enums§

JsonValue
Basic enumeration of different Json values