我希望将对象中的键重命名,从这个:
objs = {
one: { description: "value", amount: 5, value: { description: "value desc", identifier: "some text"} },
two: { description: "value", amount: 5, value: { description: "value desc", identifier: "some text"} }
}
转换为这样:
objs = {
one: { original_description: "value", amount: 5, value: { description: "value desc", identifier: "some text"} },
two: { original_description: "value", amount: 5, value: { description: "value desc", identifier: "some text"} }
}