I’m using multiple logging branches in a SnapLogic pipeline (for example pipeline_start, pipeline_end, and extraction) which are later combined using a Union Snap.
{ "logging": { "pipeline_start": { "status": "started" } } }
{ "logging": { "pipeline_end": { "status": "success" } } }
{ "logging": { "extraction": { "status": "success" } } }
After Union, these remain as separate documents, but I want to combine them into a single payload with the key "logging"
{
"logging": {
"pipeline_start": {
"status": "started"
},
"pipeline_end": {
"status": "success"
},
"extraction": {
"status": "success"
}
}
}
I need a clean way (preferably simple Mapper expression) to merge all logging objects into one structured object, ideally an expression that could be dynamic.