1

how to pretty-print a json file in the command line

pacman created at9 months ago view count: 32

command:

jq -r .  file.json

result:

{
  "foo": "bar",
  "array": [
    "1",
    "2",
    "3"
  ]
}


report

Comments

search keywords