json 0.20.1 copy "json: ^0.20.1" to clipboard
json: ^0.20.1 copied to clipboard

Easy encoding and decoding of JSON maps (maps of type `Map<String, Object?>`). Uses a macro that auto-generates a `fromJson` decoding constructor and a `toJson` encoding method.

78
likes
50/ 160
pub points
91%
popularity

We analyzed this package 20 days ago, and awarded it 50 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
10 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

Dependency resolution failed, unable to run dartdoc.

10/10 points: Package has an example

failed
Platform support
0 / 20trigger folding of the section

0/20 points: Platform support detection failed

Could not determine supported platforms as package resolution failed.

Run dart pub get for more information.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

  • Running dart pub outdated failed with the following output:
Because macros >=0.1.0-main.5 <0.1.0-main.6 depends on _macros 0.1.5 from sdk which doesn't match any versions, macros >=0.1.0-main.5 <0.1.0-main.6 is forbidden.
So, because json depends on macros 0.1.0-main.5, version solving failed.
failed
Support up-to-date dependencies
10 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

  • Could not run dart pub outdated: dart pub get failed:
OUT:
Resolving dependencies...
ERR:
Because macros >=0.1.0-main.5 <0.1.0-main.6 depends on _macros 0.1.5 from sdk which doesn't match any versions, macros >=0.1.0-main.5 <0.1.0-main.6 is forbidden.
So, because json depends on macros 0.1.0-main.5, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on macros: dart pub add macros:^0.0.1

10/10 points: Package supports latest stable Dart and Flutter SDKs

0/20 points: Compatible with dependency constraint lower bounds

dart pub downgrade failed with:

OUT:
Resolving dependencies...
ERR:
Because macros >=0.1.0-main.5 <0.1.0-main.6 depends on _macros 0.1.5 from sdk which doesn't match any versions, macros >=0.1.0-main.5 <0.1.0-main.6 is forbidden.
So, because json depends on macros 0.1.0-main.5, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on macros: dart pub add macros:^0.0.1

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.12, Dart 3.5.3.

Check the analysis log for details.

78
likes
50
pub points
91%
popularity

Publisher

verified publisherlabs.dart.dev

Easy encoding and decoding of JSON maps (maps of type `Map<String, Object?>`). Uses a macro that auto-generates a `fromJson` decoding constructor and a `toJson` encoding method.

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (license)

Dependencies

macros

More

Packages that depend on json