I have a JavaScript object as follows:
var a = { Prop1: 'test', Prop2: 'test2' }
for (var p in r) p.propertyName = 'Prop3';
That isn't directly possible.
You can just write
a.Prop3 = a.Prop1; delete a.Prop1;