Forum Discussion

nirupama's avatar
nirupama
New Contributor II
3 years ago
Solved

How to map multiple target path to single field name

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.

  • 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:

    I hope this helps!

2 Replies

  • 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:

    I hope this helps!

    • nirupama's avatar
      nirupama
      New Contributor II

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