rpatrick00
5 years agoContributor
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": {
...
- 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.