json_response 2.3.2 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 theJson
class, and thefrom
constructor of theJsonArray
class does not. Thexml2json
package is used to convert from XML format to JSON format.
2.2.0 #
2.1.0 #
- Improved documentation.
- Fixed the
forEach
method ofJsonArray
so that it returns an emptyJson
if the value it iterates over is null. - Fixed the
forEachArray
method ofJsonArray
so that it returns an emptyJsonArray
if the value it iterates over is null.
2.0.0 #
- The data structure has been refactored and there are some destructive changes.
-
In the previous method, all states were managed by
JsonResponse
, butJsonResponse
was abolished andJson
, which represents a single JSON, andJsonArray
, which represents a set of multiple JSONs, were added. -
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
andJsonArray
can be easily created by simply passingResponse
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.