`I have defined my WSDTO similar to below sample
<bean class="xyz.dto.MyOrderWsDTO"> <property name="code" type="java.lang.String" /> <property name="additionalInformation" type="java.util.Map<String,String>"/> </bean>
Now i m expecting MyOrderWsDTO as a request body in controller.
I am passing json as
{ "code": "abc", "additionalInformation": [ { "xyz": "hhj", "def": "value" } ] }
code is getting mapped but additionalInformation is coming as null.
I should be getting the values in additionalInformation as
xyz: hhj
def: value
Kaushiki Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.