top | item 43157517

(no title)

braggerxyz | 1 year ago

I agree, and I feel like the reason to this is the mere existence of 'jq'. Without 'jq' working with json in a Unix shell would be a lot more uncomfortable, but not impossible.

discuss

order

pyuser583|1 year ago

Also Python. Python handles json really well, at least compared to say bash.

I want to say server side JavaScript plays a role in this too, but I’m not a JS developer.

stemlord|1 year ago

Though jq syntax leaves a lot to be desired

jauntywundrkind|1 year ago

The syntax felt ok to me; selectors felt natural and pipes felt very conventionally shell-like. Ut man, the vocabulary, the variety of different operators you'll need to use in this circumstance or that–brutal.

There's some decent cookbooks/recipes but they're still 1/5th as big as they could be.

s_dev|1 year ago

What do you think the trade off here with syntax is and what jq was designed for?

A bash script might need to execute it and you want something without lots of funny characters or whitespace as it's going straight in to the terminal.

That necessary terseness makes it the opposite of readable.