Question
RBC
CA
Last activity: 20 Mar 2024 15:13 EDT
Not able to populate array format in JSON from PEGA pagelist.
Service – Rest rule we are using Post method, In the service activity we are capturing all the case data from clipboard pages.From clipboard each page data is mapping to Service each page as per the given JSON format, by using the Message data section, Request body Map to à JSON format. This format we are sending to external system.During this process from clipboard pagelist property is not converting into Array format in the JSON.
Expected JSON code: "Name": "Test",
" TypeOfIceCream ": [ Vanilla,
Strawberry,
Chocolate Chip ],
Actual PEGA behavior: {
"Name": "Test",
"TypeOfIceCream": [
{
"IceCreamNames": "Vanilla",
},
Service – Rest rule we are using Post method, In the service activity we are capturing all the case data from clipboard pages.From clipboard each page data is mapping to Service each page as per the given JSON format, by using the Message data section, Request body Map to à JSON format. This format we are sending to external system.During this process from clipboard pagelist property is not converting into Array format in the JSON.
Expected JSON code: "Name": "Test",
" TypeOfIceCream ": [ Vanilla,
Strawberry,
Chocolate Chip ],
Actual PEGA behavior: {
"Name": "Test",
"TypeOfIceCream": [
{
"IceCreamNames": "Vanilla",
},
{
"IceCreamNames": "Strawberry",
},
{ "IceCreamNames": "Chocolate Chip",
}
],