Skip to content

v0.3.0

Latest

Choose a tag to compare

@Tpt Tpt released this 24 Nov 20:27
· 1 commit to main since this release
  • Removed SliceJsonParser::parse_next(). Use next() or iterate over the parser directly.
  • Removed JsonEvent::Eof. Parsers now signal end of input with None.
  • Removed the deprecated type aliases and the read_next_event and write_event methods.
  • Added LowLevelJsonSerializer::finish() checks that a root value was written and that every array and object was closed.
  • SliceJsonParser now implements Iterator<Item = Result<JsonEvent<'a>, JsonSyntaxError>>.
  • ReaderJsonParser::parse_next() and TokioAsyncReaderJsonParser::parse_next() now return Option<Result<JsonEvent<'_>, JsonParseError>>.
  • LowLevelJsonParserResult::event also uses None at end of input. While more input is expected, None still means the parser needs more bytes.
  • Reader buffers grow geometrically as needed up to the configured limit.
  • TokioAsyncWriterJsonSerializer rejects further events and fails finish() after an output write fails.