Perhaps you are storing this object from some other object and it's saved by reference rather than a copy/clone, try following ways and then see:
input=JSON.parse(JSON.stringify(someObj)) or input={...someObj}