json_response 2.3.2 copy "json_response: ^2.3.2" to clipboard
json_response: ^2.3.2 copied to clipboard

A most easily usable JSON response wrapper library in Dart. With JsonResponse, you can easily and safely handle JSON response on your application.

Release Note #

2.3.2 #

  • Fixed minor features.

2.3.1 #

  • Fixed README.

2.3.0 #

  • Improved documentation.

New Features #

  • Added a feature to automatically convert the response body to JSON format from XML format. This feature is only added to the from constructor of the Json class, and the from constructor of the JsonArray class does not. The xml2json package is used to convert from XML format to JSON format.

2.2.0 #

  • Improved documentation.

New Features #

  • Added getBoolValues method to the Json class to get the bool array set in the JSON object.

Destructive Changes #

  • Fixed typo in enumerateArray method.
  • Renamed the toFlat method of the JsonArray class to flatten.

2.1.0 #

  • Improved documentation.
  • Fixed the forEach method of JsonArray so that it returns an empty Json if the value it iterates over is null.
  • Fixed the forEachArray method of JsonArray so that it returns an empty JsonArray if the value it iterates over is null.

2.0.0 #

  • The data structure has been refactored and there are some destructive changes.
  1. In the previous method, all states were managed by JsonResponse, but JsonResponse was abolished and Json, which represents a single JSON, and JsonArray, which represents a set of multiple JSONs, were added.

  2. The process of creating instances in the constructor has changed due to the above changes, but improvements have also been made in this regard so that Json and JsonArray can be easily created by simply passing Response from the http package as an argument to the constructor.

1.0.2 #

  • Fixes added in 1.0.1 to be able to determine if the JsonResponse object is empty instead of null check.

1.0.1 #

  • Fixed the feature to include null in the JSON list returned by getJsonList. Null may be meaningful depending on the data structure

1.0.0 #

  • Migrated from the JsonPro package and it is a first release.
3
likes
130
pub points
66%
popularity

Publisher

unverified uploader

A most easily usable JSON response wrapper library in Dart. With JsonResponse, you can easily and safely handle JSON response on your application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

http, xml2json

More

Packages that depend on json_response