How can JSON differ from blob?
I receive binary JSON from the server and depending on user actions blob. How can you tell them apart? Or do you need to write an additional entry point on the server?
Typically, the response headers write the typeAnonymous
let response = await fetch ('url');
// get one heading
alert (response.headers.get ('Content-Type')); // application / json; charset = utf-8Anonymous
This is usually written about in the docks to the API,Michael O'Rozco
To place the code, please use CodePen or similar tool. Thanks you!