json_object_lite allows dot notation access to JSON.parse'd objects, for Dart, lite version.
This package is a re-implementation of the json_object package by Chris Buckett except it doesn't use mirrors and hence is a much lighter version. You of course lose the JSON serialization/deserialization of the original package, however there are more advanced packages you can use for this purpose, e.g dson.
Other than that this is a faithful, lighter, re-implementation intended as a drop in replacement for the original JsonObject. Please see the json_object documentation for further details.
Note that for compatibility with Dart 2.0 only construction from strings is now supported, there are also a few other more minor updates, see the example for more details.
2.0.0<br> Dart 2.0 updates, issue 2
1.1.2<br> Pub updates
1.1.1<br> Strong mode updates for pub
1.1.0<br> Fix immutability to follow that of json_object, not reverse it
1.0.2<br> Fix failing test in Chrome
1.0.1<br> Issue 1, library name bug
1.0.0<br> Initial Release
Add this to your package's pubspec.yaml file:
dependencies: json_object_lite: ^2.0.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|2.0.0||Aug 30, 2018|
|1.1.2||Feb 19, 2018|
|1.1.1||Dec 11, 2017|
|1.1.0||Oct 16, 2017|
|1.0.2||Oct 13, 2017|
|1.0.1||Oct 2, 2017|
|1.0.0||Sep 26, 2017|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
lib/json_object_lite.dart. (-0.50 points)
lib/json_object_lite.dart reported 1 hint:
line 257 col 38: Use
= to separate a named parameter from its default value.