cancel
Showing results for 
Search instead for 
Did you mean: 

Mapper vs. JSON Splitter

nganapathiraju
Former Employee

Did you know that you can use the Mapper snap to the same effect as JSON Splitter?

There are some other reasons why you may want to use JSON Splitter.

First of all let’s look at how mapper can achieve similar functionality of JSON Splitter

To achieve the same split, in the mapper, just drag the array into the left hand expression and map it to $ in the right hand side target path. Basically this will split the array elements into the outgoing documents.

image

Using JSON Splitter however, you get additional benefits of including scalar parents as well as including different output paths as part of the split.

image

Attached is an example (simple one of course).

json split vs mapper_2017_08_08.slp (7.1 KB)

0 REPLIES 0