How do return Java List<String> Json using Jax-RS
I'd like know how do to a method return a JSON array of List, for example: @GET @Produces("application/json") public List<String> aMethod(){ return Array.asList("text1", "text2", "text3"); } I'd want to know, how do to receive a List argument type in my method, for example @PUT @Consumes("application/json") void otherMethod(List<String>){ // do something ; } I've read about JaxbContext, I understanding how it can help me. With JAXB there are two type's of List supported. The first is a List of elements, the second a delimited string (a "normal" XML value or attribute, which is parsed into a