我的对象结构如下:
{
Name: "Test",
OperationProperties.Prop1: "Val1",
OperationProperties.Prop2: "Val2",
OperationProperties.Prop3: "Val3"
}
但我需要将其表示为:
{
Name: "Test",
OperationProperties: {
Prop1: "Val1",
Prop2: "Val2",
Prop3: "Val3"
}
}
请告诉我,除了执行手动转换之外,还有其他方法吗?