MDN will be in maintenance mode on Friday September 22nd, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.

TJ_Crowder

Member since
TJ_Crowder

Recent Docs Activity

View all activity
Page Date Comment

Body.json()


What you receive in the callback is not JSON, don't call it "json". It's also not an object literal. It may be an object (not a literal), or it may be any other value that can be represented in JSON. Also fix implicit global in example and split long line

Response


No, `json` doesn't resolve with "a JSON object"

JavaScript


not always (indeed, not usually) interpreted anymore, though recent V8 work may change that (in V8)