serhii.net

In the middle of the desert you can say anything you want

17 Sep 2022

jq iterate through key names with to_entries

jq’s to_entries allows parsing key names as values/fiels:

``s__` jq ’to_entries' Input {“a”: 1, “b”: 2} Output [{“key”:“a”, “value”:1}, {“key”:“b”, “value”:2}]

Nel mezzo del deserto posso dire tutto quello che voglio.