change the keyname according to the index in object code example Example: javscript rename property name a.Prop3 = a.Prop1; delete a.Prop1;