Re: [whatwg/fetch] Should using .json on a response with 204 yield {}? (#453)

The empty string is not a valid JSON string, so that is why you are getting that error.

Why would you expect the default to pretend the empty string is actually the string `{}`? Why not `""` or `null` or `0` or `false`?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/453#issuecomment-272459654

Received on Friday, 13 January 2017 14:47:19 UTC