I am implementing REST API call from B2C custom policy and have a few doubts.
The first one is it possible to have an output claim with collection of objects? For example, REST API response has a collection of objects "prop2".
{
"prop1": "586ee92e-d090-415f-a874-b3999243c6f3",
"prop2": [
{
"prop2_1": "a41e092c-460e-41cf-9c62-b75119a85019",
"prop2_2": "testA"
}
]
}
According to documentation there is a way to map collection of objects to collection of strings (data types), but this option is not suitable for us.
I was trying to map collection of objects to collection of strings - it works, but JWT token contains "escape" characters (\r\n).
{
"prop1": "586ee92e-d090-415f-a874-b3999243c6f3",
"prop2": [
"{\r\n \"prop2_1\": \"a41e092c-460e-41cf-9c62-b75119a85019\",\r\n \"prop2_2\": \"test\" }"
]
}
The second thing - is it possible to remove "escape" characters (\r\n) from each string of collection?
Thank you for any feedback.