jsontool
Low-level tools for working with JSON without creating intermediate objects.
2.1.0
5.3K downloads/mo
#3770 most downloaded on pub.dev
lrhn/json-tool
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships on a steady schedule
a new release about every 1.2 years
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
8 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Feb 2020 to Apr 2024Releases
latest 8-
2.1.028 Apr 2024Release notes
Open source →- 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.
- Adds
-
2.0.022 Apr 2024Release notes
Open source →Update to new language version (3.0+) and lints.
Add class modifiers on classes. Most
final.Change return type of some
voidmethods toNull,
to allow chaining them after, for example,tryString() ??,
as a default fallback.Optimize whitespace skipping.
Make
ByteReaderandStringReadersources more in sync.Release notes
Open source →-
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.011 Sep 2023 -
1.1.215 Jun 2022Release notes
Open source →- Optimizes to avoid or cheapen
ascasts where possible. Usesas dynamicwith a context type where a cast cannot be avoided, for better dart2js performance.
- Optimizes to avoid or cheapen
-
1.1.109 Jun 2022Release notes
Open source →- Populate the pubspec's
repositoryfield. - Use
package:lintsfor linting. - Adds
processObjectEntrytoJsonProcessor.
- Populate the pubspec's
-
1.1.029 Apr 2021Release notes
Open source →- 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.111 Feb 2020 -
1.0.006 Feb 2020