Getting Fetch Response Data
I'm using the chrome devTools to mirror a webRequest. Looking at the network request, there is some JSON data in the response that I want to get access to Right click --> Copy a
Solution 1:
This is normal behavior. fetch()
returns a stream object and not just the body.
Use res.json()
to extract the JSON content.
For non JSON responses, use res.text()
Post a Comment for "Getting Fetch Response Data"