|
|
|
|
|
by cube2222
1621 days ago
|
|
For the general case of multiple keys and values - no. It sounds reasonable, though, so I'll think about whether to add an entries function or a map function that would allow doing this in a simple way. For the special case you wrote as an example, where each object is just a single key-value, it's possible: (object
"key" (pipe (keys) (0))
"value" (pipe ((keys)) (0)))
|
|
That would be super, ta. `to_entries[]` is pretty much the major reason I've not managed to move off `jq` to anything else yet because it's just incredibly powerful in this situation.