jsontool 2.1.0
jsontool: ^2.1.0 copied to clipboard
Low-level tools for working with JSON without creating intermediate objects.
2.1.0 #
- Adds
expectStringIndex,tryStringIndex, andtryKeyIndextoJsonReader. Allows matching a string in a list, like the non-Index` operations, but returns in the position in the list instead of the string at that position. - Adds
JsonReader.failwhich returns aFormatExceptionat the current position in the reader, with a user provided error message.
2.0.0 #
-
Require SDK 3.3.0+.
-
Adds class modifiers.
-
Update lints.
-
Change some
voidreturn types toNullinJsonReaderThis allows uses likereader.tryString() ?? reader.expectNull()to match a string ornull. -
Adds
processObjectEntrymethod toJsonProcessor, called for each object entry. -
Use table to improve parsing speed for
skipAnyValue. -
Faster whitespace skipping in readers.
1.2.0 #
- Allow SDK 3.0.0+.
- Tweak
ByteWriterimplementation.
1.1.3 #
- Typos fixed.
- Bug in
byte_reader.dartfixed.
1.1.2 #
- Optimizes to avoid or cheapen
ascasts where possible. Usesas dynamicwith a context type where a cast cannot be avoided, for better dart2js performance.
1.1.1 #
- Populate the pubspec's
repositoryfield. - Use
package:lintsfor linting. - Adds
processObjectEntrytoJsonProcessor.
1.1.0 #
- Null safe.
- Adds
JsonWriterfor JSON sinks which generate JSON-like structures. Allows injecting "source" (of a matching format) directly into the structure. - Adds
JsonProcessor. Like aJsonSinkbut gets theJsonReaderso it can process the values itself instead of getting the processed value. - Adds
JsonReader.hasNextKeyand some methods onStringSlice.
1.0.1 #
- Add CHANGELOG.md.
1.0.0 #
- Initial Release