I have a Java Spring API which expects 2 params, a simple String and a object:
@RequestMapping(value = "list", method = RequestMethod.GET)
public ResponseEntity<ListResource> getList(@RequestParam("agentName") String agentName,
@RequestParam("paginationInfo") PaginationInfoList paginationInfo {
//After http request I expect to have here my java Object PaginationInfoList ready to use
}
I'm trying to send http GET request with Postman but I get this error, then I suppose that I'm not sending the data object paginationInfo in the correct way.
"Failed to convert value of type 'java.lang.String' to required type 'com.pippo.prova.test.model.in.PaginationInfoList'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'com.pippo.prova.test.model.in.PaginationInfoList': no matching editors or conversion strategy found"
Since I can't change the way of sending, in fact must be GET and I have to use @RequestParam`, I don't know how to send JSON data in Postman parameters. I'm trying this and also other options but I always get error.

argentName.pageSize= //pageNumber= // @MatteoBruniPaginationInfoListclass. @MatteoBruni