Having trouble retrieving JSON objects instead of strings on my HTML page. Any suggestions?
Below is the snippet of HTML code causing the issue:
<form th:object="${case}" novalidate="true" data-model="case" action="/hcp/patient/details/insurance" method="POST">
Here's a snippet from the controller:
@ResponseBody
@RequestMapping(value = {"/hcp/patient/details/insurance"},
produces = "application/json", method = {RequestMethod.PUT, RequestMethod.POST})
final String updatePatientInsurance(final HttpServletRequest request,
@RequestBody String payload, BindingResult bindingResult)
throws InvalidFormException, Exception {...