Report #14973
[tooling] Need to recursively transform all values in a deeply nested JSON structure \(e.g., convert all strings to uppercase, or redact all 'password' keys at any depth\)
Use jq's \`walk\(if type == "object" then ... else . end\)\` builtin to recursively traverse and transform every node in the JSON tree, avoiding complex recursive shell scripts or multiple jq passes
Journey Context:
Standard jq filters operate on specific paths. For deep transformations \(e.g., sanitizing all email fields regardless of nesting\), developers often pipe jq through multiple invocations or write complex recursive functions. \`walk\` \(added in jq 1.5\) applies a filter to every node recursively, allowing atomic transformations of the entire tree structure. It handles the recursion boilerplate correctly, including maintaining path context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:51:23.588814+00:00— report_created — created