diff --git a/xhr.bs b/xhr.bs index 6bf26e7..87723e8 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1466,18 +1466,12 @@ or null). Unless stated otherwise it is null.

A JSON response is the return value of these steps:

    -
  1. If response's - body is null, then return null. - -

  2. Let JSON text be the result of running - utf-8 decode on received bytes. +

  3. If response's body is null, then return null. -

  4. Let JSON object be the result of invoking the initial value of the - parse property of the JSON object, with - JSON text as its only argument. If that threw an exception, return null. - [[!ECMASCRIPT]] +

  5. Let jsonObject be the result of running JSON parse with bytes on + received bytes. If that threw an exception, then return null. -

  6. Set response object to JSON object and return it. +

  7. Set response object to jsonObject and return it.