How to delete properties of a JSON object.