On encountering JSON parsing error, show the raw data by default
Categories
(DevTools :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: kumar, Unassigned)
Details
Attachments
(1 file)
67.74 KB,
image/png
|
Details |
Steps to reproduce:
When I open https://holidata.net/en-US/2021.json URL, I get SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON data
error message in Firefox. It's expected behavior of the Firefox, 2021.json
file is not in correct JSON data format. All data should be present in a top-level object (i.e. in between {}
).
Actually it's a JSON line format. We could argue that content type returned by the server is application/json
, which is wrong, but it's a fairly common.
It would be nice, if Firefox could also show the data in raw format
by default when it encounters a parsing error by opening Raw Data
tab by default, just like Chromium browser does.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•10 months ago
|
||
Description
•