Hi I am new to spring.
I am facing problem in mapping json object from angular to Map in spring controller. The definition of my controller is as follows :-
@RequestMapping(value="/PnPanel.go/FlowSheets/data/*", method={RequestMethod.GET, RequestMethod.POST},
consumes="application/json", produces="application/json")
public @ResponseBody Map invokeFlowsheets
(
HttpServletRequest request,
@RequestBody Map<String, Map> req
)
My Request body looks like
{"reqParams":"{\"name\":\"sachin\"}","appParams":"{\"name\":\"sachin1\"}","otherInfo":"{\"name\":\"sachin2\"}"}
As you can see, I am sending nested json objects and I want to map them into java.util.Map, But I am getting 400 error from spring telling that request was syntactically bad.
Sorry for bad english and for such a silly question.
Thanks in advance.