crest/middleware/parse

Parses a Response as JSON.
Source:
Parameters:
Name Type Description
promise Promise.<Response> Promise from previous middleware.
Throws:
Thrown when parsing was unable to complete.
Type
ParseError
Returns:
Promise to pass to next middleware.
Type
Promise