Forum Discussion

rpatrick00's avatar
rpatrick00
Contributor
5 years ago
Solved

Mapping fields from objects in an array to fields in objects in an array

So I have an input schema that has a structure similar to the one shown here: { "MatchUpdatePartyPayload:" { "Address": [ { "NonStandardUS": { ...
  • aditya_gupta41's avatar
    2 years ago

    Solution:

    I first used group by snap to group userID fields. Next I put a mapper and added a custom encrypted value with expression

    'XXXX'+sl.range(4).map(x => "0123456&#X"[Math.round(Math.random()*9)]).join('')

     Then I added a JSON splitter to split the group and included value of custom encryption.