Replies: 1 comment
-
Related to this is support for NDJSON on the sending side. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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).
Beta Was this translation helpful? Give feedback.
All reactions