- From: Kirill Dmitrenko <notifications@github.com>
- Date: Tue, 26 Apr 2016 06:14:57 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc:
Received on Tuesday, 26 April 2016 13:15:25 UTC
[JSON body parsing algorithm](https://xhr.spec.whatwg.org/#json-response) states that trying to parse a response which is an invalid JSON (thus, making `JSON.parse` throw an exception) will result in setting `null` to the `response` property. But according to ECMA-404 (but not to [RFC 4627](http://www.ietf.org/rfc/rfc4627.txt)), `null` is a valid JSON. So there is no way to distinct a valid response containing `null` and an invalid JSON. --- 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/xhr/issues/68
Received on Tuesday, 26 April 2016 13:15:25 UTC