Given you have shown the data as JSON, I’m guessing you’re using Node Red.
If this is the case, you would use a “Current State” node before this one to load the number into the message (say msg.offset), and then use JSONata instead of JSON with the following:
{"humidity": 20+offset }
If you’re not using Node Red and are doing it in an HA automation, you need to use a template
Note that you need to convert the offset from a string to a number - I used “int”, but if it should contain decimals, use “float”. I also added a default of 0, so it won’t have a problem if the value is unavailable for some reason.