Ravi Sir's Cards › AWS
json vs text
This comparison card contrasts json and text. json is described as full nested data. text is described as tab-separated values. The card pairs json with read or pipe to tools, and text with use in loops and $(.).
Read card text
What this card says
Output
json
Full nested data.
text
Tab-separated values.
Key points
Best for jq and programs.
Best for bash variables.
Example
--output json
Use when
Read or pipe to tools.
Use in loops and $(...).