Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

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.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 10 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/16/2026, 10:12:09 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/16/2026, 7:48:54 PM
Editable. Press Enter to edit.

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.