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
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: json_object_lite: ^2.1.0
2. Install it
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.
3. Import it
Now in your Dart code, you can use:
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 Nov 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.0
- pana: 0.12.21
Detected platforms: Flutter, web, other
No platform restriction found in primary library