Skip to main content

checked_json 0.1.0 copy "checked_json: ^0.1.0" to clipboard
checked_json: ^0.1.0 copied to clipboard

A JSON object type you only get by checking a value, with typed readers that name the field that is absent or the wrong shape.

Changelog #

0.1.0 #

  • Add JsonObject, an extension type over Map<String, Object?> that can only be made from raw data through a door that checks it (JsonObject.decode, JsonObject.parse), with typed readers (string, integer, number, boolean, object, list, strings, objects, each with an OrNull twin) plus has and raw.
  • Add JsonFieldException, the FormatException a reader throws naming the field that is absent or the wrong shape, and the shape it wanted.
  • Add wholeNumber, which reads 3 or 3.0 as an int and refuses fractions and doubles of 2^53 or more in size.
  • Licensed Apache-2.0.
0
likes
0
points
0
downloads

Publisher

verified publisherenspyr.co

Weekly Downloads

A JSON object type you only get by checking a value, with typed readers that name the field that is absent or the wrong shape.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on checked_json