Discussions

Ask a Question
Back to All

In our api we have a requirement like if there is no object set than need to pass empty array in payload.

Like i need to pass payload like this way for questions and nestedquestions need to pass empty array.

{
"attri": [
{
"key": "First Name",
"value": "Kk"
},
{
"key": "Last Name",
"value": "Ppp"
},
{
"key": "Email",
"value": "[email protected]"
}
],
"questions": [],
"nestedQuestions": [],
"seatNumber": null,
"eventTicketingId": null,
"eventKey": null

}