It is possible to make this kind of Json Transformation using JOLT or other java api, and get the mapping result after transformation
Example
- name : is a name of person
- parent : is also a name of person
update all persons ( name and parent ) from Paul to Evan
Input
{
"persons":[
{
"name":"Paul",
"adress":"abcd",
"parent":"Chris"
},
{
"name":"Jean",
"adress":"abcd",
"parent":"Paul"
}
]
}
output
{
"persons":[
{
"name":"Evan",
"adress":"abcd",
"parent":"Chris"
},
{
"name":"Jean",
"adress":"abcd",
"parent":"Evan"
}
]
}
Can someone help to write the spec of this Transformation, and how we can get the mapping result after Transformation
mapping ( Paul -> Evan )