jq - apply a filter on multiple level <p>I have a json file like this</p> <pre><code>{ "log": { "version": { "$t": "1.1" }, "creator": { "name": { "$t": "Internet Explorer Network Inspector" }, "version": { "$t": "10.0.9200.17229" } } } </code></pre> <p>And I need to flatten the file so it should read</p> <pre><code>{ "log": { "version": "1.1", "creator": { "name": "Internet Explorer Network Inspector", "version": "10.0.9200.17229" } } </code></pre> <p>I know the filter <code>{"version": .version ."$t"}</code> reduce the single element <code>"version": {"$t": "10.0.9200.17229"}</code> to <code>{"version": "10.0.9200.17229"}</code> but this filter should be applied recursively to any element at any level.</p>