Closed itchyny closed 2 years ago
I implemented indexing array by array (=indices), array by object (=slicing), string by object (=slicing).
❯ jq -nc '[0,1,0,2,0] | .[[0]]' [0,2,4] ❯ jq -nc '[0,1,0,2,0] | .[{start:1, end:4}]' [1,0,2] ❯ jq -nc '"abcde" | .[{start:1, end:4}]' "bcd"
LGTM, thank you!
I implemented indexing array by array (=indices), array by object (=slicing), string by object (=slicing).