Empty Array Issue in JSON Request
Hi All,
In our application, we consume external services. The JSON request which we send to the external API has empty arrays tagged. Could you please suggest to us how to overcome the empty array issue in the JSON request?
Actual JSON request: {
"CaseDetails":[
{
"pyID":"123"
,"pyStatusWork":"closed"
}
]
"WorkListData":[]
}
Expected JSON request:
{
"CaseDetails":[
{
Hi All,
In our application, we consume external services. The JSON request which we send to the external API has empty arrays tagged. Could you please suggest to us how to overcome the empty array issue in the JSON request?
Actual JSON request: {
"CaseDetails":[
{
"pyID":"123"
,"pyStatusWork":"closed"
}
]
"WorkListData":[]
}
Expected JSON request:
{
"CaseDetails":[
{
"pyID":"123"
,"pyStatusWork":"closed"
}
]
}
As per the above example, when there is no data related to the worklist, then the "WorkListData" empty array shouldn't get tagged to the request. we are currently working in Pega 7.4V.
Regards,
Hyma.