How to change Object to String and then String to Object without changing integers value to string

I am trying to change a Object to String and then String to object.

var object = { "string": "value", "integer": 0000 }

console.log(object);

const string = JSON.stringify(object);

console.log(string);

object = JSON.parse(string);

console.log(object);

But when i do this object.integer becomes ‘0000’ from 0000.