Input
{
"uniqueId": "jhiu78y87y",
"appId": "SF",
"dob": "BgYN=",
"ssn": "Rn=",
"dln": "ZJ4=",
"dla": "TX",
"dle": "2025-09-30"
}
Need to match the key along with value after that format field have to update. Format field condition would be dob=DATE, ssn=SSN and dln=NUM other than these String would be the value of format field.
Expected Output
[
{
"tokenReq": "rsa",
"tokenRes": "vol",
"data": [
{
"name": "dob",
"value": "BgYN=",
"format": "DATE"
},
{
"name": "ssn",
"value": "Rn=",
"format": "SSN"
},
{
"name": "dln",
"value": "ZJ4=",
"format": "NUM"
}
]
},
{
"tokenReq": "plain",
"tokenRes": "vol",
"data": [
{
"name": "dla",
"value": "TX",
"format": "STRING"
},
{
"name": "dle",
"value": "2023-09-30",
"format": "STRING"
}
]
}
]