I am building a RESTful web-service in Java using Jersey 1.11, and have problems implementing a method which consumes a list of JSON-ised entities. The single instance method wo
Wrapper class works. MyEntity[] myEnts doesn't work.
MyEntity[] myEnts
This is what I did and it worked.
public String createBatch(@PathParam("someParam") String someParam, String content)
Use ObjectMapper to convert to List of objects.
ObjectMapper
List entities = om.readValue(content, new TypeReference>(){}).