4 ms·
I agree. jq makes the easy stuff easy, but the syntax gets weird pretty quickly. You might like fx [0]. Run on its own, it’s a command line JSON browser (you c
by dceddia 7y ago
I agree. jq makes the easy stuff easy, but the syntax gets weird pretty quickly.
You might like fx [0]. Run on its own, it’s a command line JSON browser (you can even click on items to expand/collapse them), and you can also write little JS one-liners to do stuff like map over an array and transform the items.
Something like this, to extract the name from an array of users, for instance:
fx users.json ‘u => u.name’
0: https://github.com/antonmedv/fx https://github.com/antonmedv/fx