I have an object like this.
var obj = {
    name: "foo",
    age: 23
};
for (i in obj) {
    if (obj[i] == "foo") {
    obj[i] = "bob";
  }
}
After manipulating the object
when using JSON.stringify(obj) i getting the output like this.
{"name":"bob","age":23}
But i don't need the objects property as string how to convert into objects property name. so i need the ouput like this {name:"bob",age:23}. Please correct me if i am wrong.
 
     
     
     
    