How do I programmatically configure Jersey to use Jackson for JSON (de)serialization?
问题 I'm using Jersey together with Grizzly to create a JSON web service. I initialize it as follows: final ResourceConfig rc = new PackagesResourceConfig("amplify.api.resources"); rc.getProperties().put(JSONConfiguration.FEATURE_POJO_MAPPING, true); return GrizzlyServerFactory.createHttpServer(BASE_URI, rc); I have no web.xml file. I noticed that Jersey was mapping single element lists to be "element" rather than "[element]" as I would expect. It seems that apparently this is because Jersey uses