Closed Bug 1713317 Opened 4 years ago Closed 1 year ago

Add support for JSON Lines / NDJSON to the JSON viewer

Categories

(DevTools :: General, enhancement)

Firefox 87
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1603986

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.

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.

Component: Untriaged → General
Product: Firefox → DevTools
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1603986
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.