Is there a way within a B2C custom policy to perform an iteration on some Json returned from a REST call.
Example:
If the REST service returned:
[
{
name: "item1",
value: "value1"
},
{
name: "item2",
value: "value2"
},
{
name: "item3",
value: "value3"
}
]
I want to be able to iterate through this array, and perform a calculation, and set a claim boolean if a record is found.
calculation(name, value) == calculation(another_input_claim, value)
I cannot use another REST service, as the specifics of the calculation need to be securely performed inside the B2C policy.
I can change the Json format of the input array if this helps?
Do you have any suggestions on implementing this within a B2C policy?