TL;DR: It would be cool if all CLI apps supported JSON output, but in the meantime we can use jc

  • dotslashme@infosec.pub
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    1 year ago

    Not to piss on anyones parade here, but grepping something out of a json structure is one of the most asked questions for jq as well. Of course json is nice, but if the goal is to simplify data extraction, I’m not sure much will be gained by this.

    As far as reducing the toolchain necessary to extract the same data, this is a welcome addition.

    • platypus_plumba@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I’ve never been able to successfully write a jq command without having to Google it. It is something so complex and I don’t do it often, so I just forget everything.

      I hope they figure out something with more I tuitive syntax, something SQL-like that people can write without having to look at a manual.

      Anyways, AI is here… pretty soon we’ll just translate natural text to whatever overly complex language there is.

      I’m sure I’ll get replies of people saying jq is easy. It isn’t for me, right now I can t even remember how to filter and create associations between objects. I think I’ll just start writing small python apps to process JSON. A bit longer but at least I can maintain it. The only issue is that Python is too heavy… I’ll figure something out.

      I’ve been thinking for a while that what we actually need is a modern shell language. Like a mix between python and shell. Imagine if you had native support to read a JSON using shell.

      Edit: oh shit. Said all of this and then saw the comment below talking about Nushell. Today is a good day.