json method
Takes a Response or Request stream and returns a promise for an object containing JSON data.
Syntax
*object.*json()
Parameters
This method has no parameters.
Return value
Type: Promise<JSON>
A promise for an object that contains JSON data.
See also
Request
Response