I want to return with my controller spring a JSONARRAY, but when running I receive this error:
java.lang.IllegalArgumentException: No converter found for return value of type: class org.codehaus.jettison.json.JSONArray
this is my code :
@RequestMapping(value = "/generate", method = RequestMethod.GET)
@ResponseBody
public JSONArray generate() throws NoSuchFieldException, CloneNotSupportedException{
return facturationSvc.facturer();
}
NB:The method "facturer()" of the service "facturationSvc" , returns a JSON ARRAY