cancel
Showing results for 
Search instead for 
Did you mean: 

How to map multiple target path to single field name

nirupama
New Contributor II

Hi all,

I have a sample data as below:
“TRANSCU2”:

“T1”

“TRANSCU3”:

“T4”

“TRANSCU4”:

“T8”

“TRANSCU6”:

“T90H”

“TRANSCU7”:

“T67”

“TRANSCU8”:

“T653”

But i wanted to map all source field to single target path like below:
“CU”:“T1”
“CU”:“T4”
“CU”:“T8”
“CU”:“T90H”
“CU”:“T67”
“CU”:“T653”

Please suggest.

1 ACCEPTED SOLUTION

koryknick
Employee
Employee

Allow duplicate names in a JSON object is generally not recommended as a JSON standard and SnapLogic doesn’t allow it. You could, however, translate the object into an array of values using some simple expression syntax such as the following:
image

image

I hope this helps!

View solution in original post

2 REPLIES 2

koryknick
Employee
Employee

Allow duplicate names in a JSON object is generally not recommended as a JSON standard and SnapLogic doesn’t allow it. You could, however, translate the object into an array of values using some simple expression syntax such as the following:
image

image

I hope this helps!

nirupama
New Contributor II

@koryknick It helped, Thanks. I used json splitter after this and then mapped it to single target path.