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

  • 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.