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§
- Json
KeyValue - Structure representing a JSON key value pair
Enums§
- Json
Value - Basic enumeration of different Json values