在使用第三方休息服务时,我收到了这样的回复
{"boMetaId":"org__ClientOrder","attributes":
{
"clientid":40002712,
"productid":40002718,
"clientorderid":1,
"clientorderdate":"2017-01-01",
"clientordervalue":23
}
}
但我需要在将数据发送到数据库时将此json转换为
{"boMetaId":"org__ClientOrder","attributes":
{
"clientid": {"id":40002712},
"productid": {"id":40002718},
"clientorderid":1,
"clientorderdate":"2017-01-01",
"clientordervalue":23
}
}