3 ms·
Looks a bit like `jq -rc '[path(..)|map(strings//"[]")]|unique[]|"."+join("|.")'`, but might I suggest `jq -rc '[paths|map(("."+strings)//"[]")|join("")]|unique
by naniwaduni 5y ago
Looks a bit like `jq -rc '[path(..)|map(strings//"[]")]|unique[]|"."+join("|.")'`, but might I suggest `jq -rc '[paths|map(("."+strings)//"[]")|join("")]|unique[]'`?
- tejtm 5y agoThere is no need to guess, you can just look in the repo. I like the explicit separators when I'm reading them instead of writing them. Helps the individual steps stand out for me. Is there a reason other than a more compact line?