我有以下json。如果我改变了这个json的任何字段,我使用jquery传递了整个json的更新值。
{
"processDefId": "xyz",
"name": "name",
"sla": "10",
"hasChild": true,
"child": [
{
"activityDefId": "siteSurveyDef",
"activityName": "Site Survey",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true,
"child": [
{
"activityDefId": "Begin",
"activityName": "Begin",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true
},
{
"activityDefId": "Site Survey2",
"activityName": "Site Survey2",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true
}
]
},
{
"activityDefId": "siteSurvey",
"activityName": "Procurement",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true,
"child": [
{
"activityDefId": "Begin",
"activityName": "Begin"
},
{
"activityDefId": "Site Survey",
"activityName": "Site Survey3",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true
}
]
},
{
"activityDefId": "siteSurvey",
"activityName": "Provisioning",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true,
"child": [
{
"activityDefId": "Begin",
"activityName": "Begin"
},
{
"activityDefId": "Site Survey",
"activityName": "Site Survey4",
"isMandatory": "true",
"isOptional": "false",
"sla": "10",
"sequence": "1",
"hasChild": true
}
]
}
]
}
不知道怎么办?有人帮忙吗?