How to modify values in a JSON object.