Jersey 2 JSON Jettison unwrapping root element
问题 We are migrating from Jersey 1 to Jersey 2. Up until now we were using ContextResolver configured like this: import com.sun.jersey.api.json.JSONConfiguration; import com.sun.jersey.api.json.JSONConfiguration.MappedBuilder; @Provider @Produces("application/json") public class JSONJAXBContextResolver implements ContextResolver<Class<?>> { @Override public JAXBContext getContext(Class<?> objectType) { MappedBuilder mapped = JSONConfiguration.mapped(); mapped.arrays("Property"); //$NON-NLS-1$