Transform each value while keeping keys unchanged.
Section: Entries and Key-Value Maps
Map object values
bash
bash
echo '{"a":1,"b":2}' | jq 'map_values(. * 10)'Explanation
`map_values()` is concise when only object values need changing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Entries and Key-Value Maps