Skip to content

feat: add --import-json headless converter (JSON → CSV)#233

Open
cemheren wants to merge 31 commits into
mainfrom
grow/import-json
Open

feat: add --import-json headless converter (JSON → CSV)#233
cemheren wants to merge 31 commits into
mainfrom
grow/import-json

Conversation

@cemheren
Copy link
Copy Markdown
Owner

Adds --import-json CLI flag to convert a JSON array of objects into a CSV file.

Usage:

ExcelConsole --import-json data.json output.csv
  • First row = column headers (union of all object keys, in order of appearance)
  • Subsequent rows = values (numbers preserved, nulls become empty, booleans as text)
  • Handles sparse objects (missing keys → empty cells)

Persona: SRE/devops users who pipe API responses (curl ... | jq) into their desktop dashboard without manual CSV wrangling.

Round-trip safe: --export-json--import-json preserves data.

Build: ✅ 0 warnings, 0 errors.

cemheren and others added 30 commits May 28, 2026 19:03
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a new CLI flag to convert a JSON array of objects into a CSV file.
First row becomes column headers (from object keys), subsequent rows hold values.

Usage: ExcelConsole --import-json <input.json> <output.csv>

Useful for devops/SRE workflows where API responses need to land on
the desktop dashboard without manual CSV conversion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant