how to REST map datatable data (from fnGetData()) with Java

how to REST map datatable data (from fnGetData()) with Java

ligishligish Posts: 3Questions: 2Answers: 0

Hi,
I have jQuery datatable and want to submit the complete data in the table to Java REST controller. I am getting the data from datatable using fnGetData() method, created a JSON object along with other fields in the UI and submitted a POST request to the Java REST controller (Spring). I am trying to map datatable content with a ArrayList in controller. I am getting the error "org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token".

Could someone please guide me here? Thank you.

This discussion has been closed.