krupalibshah
8 years agoContributor
JSON Splitter removing the data
I am using JSON splitter to split the input document into smaller documents. However the splitter will remove the element on which we are performing the split functionality. I need some work around to either retain it or to be able to add it back after the split.
See example below,
Splitting this at $…IDOC and I get below as output,
I need the output as,
The root element will be dynamic and need to capture that and should be available after the split.
Any help will be appreciated.
My problem was to be able to add the parent element dynamically, worked by using JSON generator,
{ $root: { "IDOC" :$payload } }
Got the value of “root” from expression library 🙂
Thanks for the help!