spry_json 1.0.0
spry_json: ^1.0.0 copied to clipboard
Spry JSON middleware and request/response extension, used to convert request body to JSON object or set response body to JSON object.
Changelog #
1.0.0 - 2023-03-14 #
0.3.0 #
- SpryJson: Remove
encodingoption. - SpryJson: Remove
contentTypeoption. - Adapt to
spry0.4.0.
0.2.1 #
Update readme.
0.2.0 #
Breaking changes #
- Remove
SPRY_REQUEST_JSON_BODYcontext key. - SpryJson: Remove
validateRequestHeaderoption. - SpryJson: Remove
hijackParseErroroption. - Only support objects and arrays as the root element of the json.
0.1.1 #
- Update
spryto0.1.3. - Fix docs typo.
0.1.0 #
- Throw
SpryExceptionwhen the request is not a json. - If validate media type failed, the response will be
415 Unsupported Media Type.
0.0.1 #
First release.