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
Macros
- Helper macro for cooking up a ParserError specific to the DOM parser
- Helper macro for cooking up a ParserError specific to the lexer
- Helper macro for cooking up a ParserError specific to the SAX parser
Structs
- Structure representing a JSON key value pair
Enums
- Basic enumeration of different Json values