Skip to main content
Body.json - Fetch - Web documentation
method Body.json
Private
Body.json(): Promise<any>

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

Return Type

Promise<any>
Back to top