Hello,
I implemented a changed detection on oracle table.
Now I would like to be able to create a json for each change per object.
For instance, for an object where changes were detected on 5 attributs, below will be the json that I would like to obtain:
{
"ATTRIBUT1": {
"OLD_VALUE": "OLD1",
"NEW_VALUE": "NEW1"
},
"ATTRIBUT2": {
"OLD_VALUE": "OLD2",
"NEW_VALUE": "NEW2"
},
"ATTRIBUT3": {
"OLD_VALUE": "OLD3",
"NEW_VALUE": "NEW3"
},
"ATTRIBUT4": {
"OLD_VALUE": "OLD4",
"NEW_VALUE": "NEW4"
},
"ATTRIBUT5": {
"OLD_VALUE": "OLD5",
"NEW_VALUE": "NEW5"
}
}
How can I proceed to obtain this in fme?
I was tinking of the agregator to group all the changes from the same object (based on an objectid) and then build the json but I don't know how to proceed.
Please keep in mind that the number and names of attributes will change from one object to another one.
Thanks,