Is there a simple way for marshalling and unmarshalling String[] or List in RESTEasy?
My code sample :
@GET
@Path("/getSomething")
@Produces(MediaType.APPLICATION_JSON)
public List<String> getSomeData() {
return Arrays.asList("a","b","c","d");
}
Above gives me an Exception :
Could not find MessageBodyWriter for response object
of type: java.util.Arrays$ArrayList of media type: application/json