我有一些jsonPath信息,如下所示:
"syncData": {
"$.name": "haha",
"$.accountId": "1848",
"$.probability": 9,
"$.dealInfoVo.amount": "1000",
"$.description": "11144",
"$.owners[0].ownerUserId": "999",
"$.owners[0].isPrimary": "true",
"$.expectedCloseTime": 1543680000000,
}
以及如何使用这些jsonPath信息创建json? 预期的json是这样的:
{
"name":"haha",
"accountId":"1848",
"probability":"9",
"dealInfoVO":{
"amount":"1000"
},
"description":"11144",
"owners":[
{
"ownerUserId":"999",
"isPrimary":"true"
}
],
"expectedCloseTime":1543680000000
}