on 2019 May 30 8:36 AM
Hi Experts
i am trying to get below json data from Postman to controller as POST request.
When i am specifying root tag(productInfo) in json data i am getting null and when when i remove root tag from json i am able to see the data(values) in controller...Can anyone tell me how to create/access the root tag(productInfo) in DTO's or is there any other way to do it?
<bean class="de.hybris.platform.commercewebservicescommons.dto.product.ProdutDTO">
<property name="A" type="String"/>
<property name="B" type="String"/>
<property name="C" type="String"/>
<property name="D" type="String"/>
</bean>
Json Data :
{
"ProductInfo":{
"A": "1",
"B": "2",
"C": "3",
"D": "4"
}
}
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.