You are not logged in.

#1 2021-12-25 16:20:35

1ndeed
Member
Registered: 2018-09-28
Posts: 41

jq command: how to line up the braces {}

normal jq:

{
  "ok": true,
  "result": {
    "abc": abc,
    "abc": abc,
    "abc": abc
  }
}

I always hate this layout. I want:

{
  "ok": true,
  "result":
  {
    "abc": abc,
    "abc": abc,
    "abc": abc
  }
}

I'm ok if I'm programming or something. But come on, when I use jq, I want the data to be as clear and easy to see as possible.
So how can I use the jq in the second layout?

Last edited by 1ndeed (2021-12-25 19:15:00)

Offline

#2 2021-12-25 18:37:18

Lilitu-Blackstar
Member
Registered: 2021-12-23
Posts: 51

Re: jq command: how to line up the braces {}

request it upstream?  why would you want to go against a language standard anyway?

Offline

Board footer

Powered by FluxBB