Relationships
#4759 Structured data query content renders as an unreadable table
Opened by randomfrequency · 11/14/2026· Shipped 11/16/2026
Reproduction
Query an item whose JSON content contains a large nested array or object, for example:
swamp data query 'modelName == "ubuntu-apt-inventory" && name == "installed"' --select content
Actual behavior
The terminal renderer turns the content object into a table and puts nested values into single cells. Large content produces an extremely wide table and screens of separator lines, making the result difficult to read.
Expected behavior
Display structured content in a readable format, such as indented JSON, while preserving the existing structured JSON output mode.
Investigation
The projected map/list terminal renderer formats nested objects as compact JSON inside Markdown table cells. A local change renders structured --select content values as indented JSON; its focused renderer tests pass. The full test suite was interrupted before completion.
Shipped
Click a lifecycle step above to view its details.
randomfrequency commented 11/14/2026, 9:20:30 PM
zack commented 11/16/2026, 10:12:10 PM
Thanks @randomfrequency for reporting this! We shipped: In log mode and the TUI, print a data query --select result as indented JSON, one document per row, when any map or list cell holds a nested object or array. This skips the Markdown table and marked, as scalar projections already do. Flat projections keep their table, and JSON mode is unchanged.. The fix has been merged and a release is on its way. We appreciate your contribution to swamp.
Sign in to post a ripple.