Skip to main content
method Request.prototype.json

Takes a Request stream and reads it to completion. It returns a promise that resolves with the result of parsing the body text as JSON.

Returns

Promise<any>