Forum Discussion
ivicakoteski
3 years agoNew Contributor III
Hi Dabal,
JSON splitter is expecting list not an object, for example if the input is an object “data”: {“test1”:123}, JSON splitter will fallout because it is needed to be in array “data”: [{“test1”:123}]. You can use sl.ensureArray expression (Confluence) in Mapper snap before JSON splitter, to solve this issue.
Example: sl.ensureArray($data) - If it is an array will return unchanged, otherwise it should return the argument in an array.
Let me know if this helps you.
BR,
Ivica
Related Content
- 2 years ago