1.1.1 • Published 4 years ago

serviceberry-json v1.1.1

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

serviceberry-json

CircleCI Test Coverage Maintainability npm version

JSON serialization plugin for serviceberry.

API

contentType

application/json

serialize(request, response)

Transforms the response body into a JSON string.

If the response body is a readable stream, it will be piped through a JSON serializer stream. Objects are transformed into a stream that's entire output is a valid JSON array - [ followed by each object serialized as JSON and separated by a comma (except last object) and a new line (LF) followed by ].

deserialize(request, response)

Transforms the request content into the request body

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago