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.
Dart 2.0 updates, issue 2
Strong mode updates for pub
Fix immutability to follow that of json_object, not reverse it
Fix failing test in Chrome
Issue 1, library name bug
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 pub get
Alternatively, your editor might support
pub get or
flutter pub 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 Jun 17, 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. (-1 points)
lib/json_object_lite.dart reported 2 hints:
line 134 col 7: DO use curly braces for all flow control structures.
line 257 col 38: Use
= to separate a named parameter from its default value.