Add support for JSON Lines / NDJSON to the JSON viewer
Categories
(DevTools :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: info, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0
Steps to reproduce:
File / Open / select *.jsonl JSON Lines file.
JSON Lines and NDJSON are file formats which have become common in many scenarios. The format is very similar to JSON: it's a sequence of multiple JSON content, each JSON object one per line.
Semantically, a JSON Lines / NDJSON file is an ARRAY of JSON.
Actual results:
The JSON Lines file opened as a plain text file
Expected results:
The JSON Lines or NDJSON file should render using the JSON viewer, which is a much more useful hierarchical, collapsible, color-coded display.
The differences between JSON Lines or NDJSON versus JSON are trivial: other than the constraints on newlines and an initial '[' and ']' for an outer array container, they are effectively the same.
Comment 1•4 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.
Updated•1 year ago
|
Description
•