I have json input as
{"subkeys":[{"1","2", "3"},{"4","5","6"},{"7","8","9"}]
I need to get this as List < List < String > > or List < String[] >.
@PUT
@Path("/{key}/")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public MyResponse loadData( List<List<String>> subkeys) {
}
I got the error like
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.util.List at private java.util.List foobar.alkohol.register.webservice.jaxws.GetRelationsFromPersonResponse._return
java.util.List is an interface, and JAXB can't handle interfaces- OneCricketeer