javascript - Thymeleaf form not returning json object -


my html page not retrieving payload in form of json object. instead returning string. help

html code snippet:

<form th:object="${case}" novalidate="true" data-model="case" action="/hcp/patient/details/insurance" method="post"> 

controller:

@requestmapping(             value = {"/hcp/patient/details/insurance"},             produces = "application/json",             method = {requestmethod.put, requestmethod.post})     final @responsebody string updatepatientinsurance(final httpservletrequest request,             @requestbody string payload,                bindingresult bindingresult) throws invalidformexception, exception { 

explicitly rendered tab when accessing solved issue.

p.s: render function converts payload json object

formcontroller.render(tabcontent, url); 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -