Indent JSON when stdout is terminal #12555
Labels
feature
Feature request or proposal
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
Is your feature request related to a problem?
Single-line JSON is hard to read, because the nesting structure is not visible.
Proposed solution
Format the JSON output by indenting it when the stdout is a terminal.
Considerations:
Alternative solutions
--json --indent
Defeats the utility of not having to specify that in the terminal.
Additional context
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: