Renaming keys one at a time gets old fast. When the change follows a pattern, with_entries handles all of them at once.
jq 'with_entries(.key |= ascii_upcase)'
For each key, jq builds a little object with key and value fields, runs your filter on it, and puts the result back together. So {"a":1,"b":2} becomes {"A":1,"B":2}. Changing values works the same way:
echo '{"a":1,"b":2}' | jq -c 'with_entries(.value += 1)'
{"a":2,"b":3}
The useful combination is select plus a rename. This keeps only the keys that start with A_ and strips that prefix:
echo '{"A_x":1,"A_y":2,"B_z":3}' | jq -c 'with_entries(select(.key | startswith("A_")) | .key |= ltrimstr("A_"))'
{"x":1,"y":2}
The manual describes it as to_entries | map(f) | from_entries, which is handy to remember when you need more control. The caveat is that the filter has to hand back an object that still has key and value. Return anything else and the call fails.
It also works on a single nested object, for example .labels |= with_entries(...), which leaves the rest of the document untouched.
Dropping keys by value works the same way. On jq 1.7, this removes every key whose value is null:
echo '{"a":1,"b":2,"c":null}' | jq -c 'with_entries(select(.value != null))'
{"a":1,"b":2}
A plain rename with a prefix is with_entries(.key |= "x_" + .), which turns {"a":1,"b":2} into {"x_a":1,"x_b":2}. If the filter returns something that isn’t a key and value object, for example with_entries(.foo), jq 1.7 stops with Cannot use null (null) as object key.
Further reading: jq manual