Crate json_tools

source ·
Expand description

For usage examples, please have a look at the tests and benchmarks.

Structs§

  • Removes tokens matching ,? "key": <type> ,?., where <type> is a given token type. Useful for removing null values, or all numbers, for instance. Is made in a resilient fashion which doesn’t require a sane input token stream.
  • A lexer for utf-8 encoded json data
  • A pair of indices into the byte stream returned by our source iterator. It is an exclusive range.
  • A lexical token, identifying its kind and span.
  • An adapter to convert a stream of Tokens into bytes by implementing an std::io::Read trait.

Enums§

  • Representation of a buffer containing items making up a Token.
  • The type of Buffer you want in each Token

Traits§

  • Applies convenience constructors to all Iterator<Item=Token> types