If I have the following:
var myObj = { "Foo":{"prop1":"abc", "prop2":123 }, "Bar":{"prop1":"def", "prop2":456 } };
Is there a quick and safe way to modify the object such that it becomes:
{ "Foo":{"prop1":"abc", "prop2":123 }, "Bar":{"PROP1":"def", "PROP2":456 } }
I'd like to change the casing of the property names of the Bar property on-the-fly. Is this possible?