this post was submitted on 10 Dec 2023
106 points (95.7% liked)
Programming
17450 readers
80 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.
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.