3 ms·
I'm a big fan of jo[1] for making generating JSON from the shell not terrible. [1] https://github.com/jpmens/jo https://github.com/jpmens/jo
by flurie 5y ago
I'm a big fan of jo[1] for making generating JSON from the shell not terrible.
[1] https://github.com/jpmens/jo https://github.com/jpmens/jo
- s_dev 5y agoYou could give jq a go: https://stedolan.github.io/jq/ https://stedolan.github.io/jq/
- flurie 5y agoOh, don’t worry, I am familiar[1] with it! It doesn’t quite do this one thing as well as jo, so I like using both. [1] https://github.com/flurie/AdventOfCode/blob/main/2021/jq/d14p2.org https://github.com/flurie/AdventOfCode/blob/main/2021/jq/d14... - unfortunately, this is the point at which I realized the stdlib was a little too anemic for general purpose solving and gave up
- jonfw 5y agoVery cool! jq is very powerful but can be clunky for simple operations, I love how simple this is