1
Provide visual preview support for NDJSON
Source: Kong/insomnia#3541 · opened by @gerhard4
Is your feature request related to a problem? Please describe.
Many APIs return data in NDJSON (application/x-ndjson) format. The visual preview renderer almost gets it, but not quite. Specifically, the collapsing doesn't work correctly.
Describe the solution you'd like
I'd like the visual preview renderer to detect that the result is NDJSON (either by how it is formed, or by looking at the Content-Type header) and display it correctly, specifically the collapsing.
Describe alternatives you've considered
Alternatives are copying the raw result and paste it into an editor that works with NDJSON.
Additional context
For me, the collapsing works only every other line. This doesn't look like a bug; it rather looks like an arbitrary artifact of applying the JSON renderer to NDJSON data (which is almost, but not quite, JSON).
Many APIs return data in NDJSON (application/x-ndjson) format. The visual preview renderer almost gets it, but not quite. Specifically, the collapsing doesn't work correctly.
Describe the solution you'd like
I'd like the visual preview renderer to detect that the result is NDJSON (either by how it is formed, or by looking at the Content-Type header) and display it correctly, specifically the collapsing.
Describe alternatives you've considered
Alternatives are copying the raw result and paste it into an editor that works with NDJSON.
Additional context
For me, the collapsing works only every other line. This doesn't look like a bug; it rather looks like an arbitrary artifact of applying the JSON renderer to NDJSON data (which is almost, but not quite, JSON).
No pledges yet. Be the first to back this.
No comments yet.