-
Notifications
You must be signed in to change notification settings - Fork 0
Recursive Oneliners
nntrn edited this page Jun 28, 2023
·
1 revision
Perform recursively to every component
jq 'walk( fromjson? // .)'
jq 'walk(if type == "object" then del(.key0, .key1) else . end)'
jq '(.. | select(type == "object")) |= del(.changes, .id)'
jq 'walk(if type == "array" then map(select(length > 0)) else . end)'