tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.3k stars 675 forks source link

Add support for JSON Lines / NDJSON #298

Closed whlavina closed 3 years ago

whlavina commented 3 years ago

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.

Input in JSON Lines (.jsonl) or NDJSON (.ndjson) should render as 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.

whlavina commented 3 years ago

I must have missed #277. I'll close this issue, since it's a dupe.