I'm passing json array from angularjs, and it's comes on Spring Controller, I catch it there at @RequestBody String data
I want to store those data inside List,
I tried this,
List<RegisterDTO> stdList = JsonConvert.DeserializeObject<RegisterDTO>(data);
But I don't know JsonConvert from where it's coming? I'm getting an error there(cannot to be resolved).
RegisterController.java
@ResponseBody
@RequestMapping(value = "/registerStudent.do", method = RequestMethod.POST)
public boolean registerStudent(@RequestBody String data) {
System.out.println(data);
if (stdList != null) {
// store stdList
}
return registerService.isStudentExist(stdList);
}