I need to generate key as customerContactList[0].customerContactId
from Pojo. I have tried with arrayList but I am able to generate in below format customerContactList=[{ customerContactId=2 } ]
which seems invalid for API request.
- this Post API accept form-data
- If I pass in key value pair
formParams.put("customerContactList[0].customerContactId", 2);
then it is consider as valid. But I need to generate same format through Pojo.