I need to find an optimised way to pass an arraylist as json a obj to the controller using spring mvc.
Currently I am doing it this way:
public @ResponseBody List<String> abcd() throws Exception {
return listString;
}
but it is returning a normal list type object. I need a proper json obj which can be accessed by angular js.