spry_json 1.0.0 copy "spry_json: ^1.0.0" to clipboard
spry_json: ^1.0.0 copied to clipboard

discontinuedreplaced by: spry

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 #

⚠ BREAKING CHANGES #

  • Fix wrong version dependencies

Bug Fixes #

  • Fix wrong version dependencies (f065f11)

0.4.0 - 2023-03-14 #

Features #

0.3.0 #

  1. SpryJson: Remove encoding option.
  2. SpryJson: Remove contentType option.
  3. Adapt to spry 0.4.0.

0.2.1 #

Update readme.

0.2.0 #

Breaking changes #

  1. Remove SPRY_REQUEST_JSON_BODY context key.
  2. SpryJson: Remove validateRequestHeader option.
  3. SpryJson: Remove hijackParseError option.
  4. Only support objects and arrays as the root element of the json.

0.1.1 #

  1. Update spry to 0.1.3.
  2. Fix docs typo.

0.1.0 #

  • Throw SpryException when the request is not a json.
  • If validate media type failed, the response will be 415 Unsupported Media Type.

0.0.1 #

First release.

1
likes
140
points
18
downloads

Documentation

API reference

Publisher

verified publisherodroe.com

Weekly Downloads

Spry JSON middleware and request/response extension, used to convert request body to JSON object or set response body to JSON object.

License

MIT (license)

Dependencies

spry

More

Packages that depend on spry_json