How to modify an array value of a JSON object.