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

discontinued

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.

40/ 160
pub points
489
downloads

We analyzed this package 27 hours ago, and awarded it 40 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: json,
    • contains a version property, and,
    • does not contain a publish_to property.

Repository has no matching pubspec.yaml with name: json.

Repository URL doesn't exist.

At the time of the analysis https://github.com/dart-lang/sdk/tree/main/pkg/json was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

Dependency resolution failed, unable to run dartdoc.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Platform support detection failed

Could not determine supported platforms as package resolution failed.

Run dart pub get for more information.

Failed check 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 report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 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 and macros >=0.1.0-main.6 <0.1.0-main.7 depends on _macros 0.1.6 from sdk, macros >=0.1.0-main.5 <0.1.0-main.7 requires _macros 0.1.5 or 0.1.6 from sdk.
And because macros >=0.1.0-main.7 <0.1.1-main.0 depends on _macros 0.1.7 from sdk and macros >=0.1.1-main.0 <0.1.2-main.0 depends on _macros 0.2.0 from sdk, macros >=0.1.0-main.5 <0.1.2-main.0 requires _macros 0.1.5 or 0.1.6 or 0.1.7 or 0.2.0 from sdk.
Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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 and macros >=0.1.0-main.6 <0.1.0-main.7 depends on _macros 0.1.6 from sdk, macros >=0.1.0-main.5 <0.1.0-main.7 requir[...]
And because macros >=0.1.0-main.7 <0.1.1-main.0 depends on _macros 0.1.7 from sdk and macros >=0.1.1-main.0 <0.1.2-main.0 depends on _macros 0.2.0 from sdk, macros >=0.1.0-main.5 <0.1.2-main.0 re[...]
And because macros >=0.1.2-main.0 <0.1.2-main.2 depends on _macros 0.3.0 from sdk and macros >=0.1.2-main.2 <0.1.2-main.4 depends on _macros 0.3.1 from sdk, macros >=0.1.0-main.5 <0.1.2-main.4 re[...]
And because macros >=0.1.2-main.4 <0.1.3-main.0 depends on _macros 0.3.2 from sdk and macros >=0.1.3-main.0 depends on _macros 0.3.3 from sdk, macros >=0.1.0-main.5 requires _macros 0.1.5 or 0.1.[...]
So, because _macros from sdk doesn't exist (could not find package _macros in the Dart SDK) and 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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

dart pub downgrade failed with:

OUT:
Resolving dependencies...
ERR:
Because macros >=0.1.3-main.0 depends on _macros 0.3.3 from sdk and macros >=0.1.2-main.4 <0.1.3-main.0 depends on _macros 0.3.2 from sdk, macros >=0.1.2-main.4 requires _macros 0.3.2 or 0.3.3 fr[...]
And because macros >=0.1.2-main.2 <0.1.2-main.4 depends on _macros 0.3.1 from sdk and macros >=0.1.2-main.0 <0.1.2-main.2 depends on _macros 0.3.0 from sdk, macros >=0.1.2-main.0 requires _macros[...]
And because macros >=0.1.1-main.0 <0.1.2-main.0 depends on _macros 0.2.0 from sdk and macros >=0.1.0-main.7 <0.1.1-main.0 depends on _macros 0.1.7 from sdk, macros >=0.1.0-main.7 requires _macros[...]
And because macros >=0.1.0-main.6 <0.1.0-main.7 depends on _macros 0.1.6 from sdk and macros >=0.1.0-main.5 <0.1.0-main.6 depends on _macros 0.1.5 from sdk, macros >=0.1.0-main.5 requires _macros[...]
So, because _macros from sdk doesn't exist (could not find package _macros in the Dart SDK) and 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.23, Dart 3.9.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
98
likes
40
points
489
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

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.

License

BSD-3-Clause (license)

Dependencies

macros

More

Packages that depend on json