@Override
protected Object[] getSingletons() {
JacksonJsonProvider jacksonProvider = new JacksonJsonProvider();
jacksonProvider.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.USE_GETTERS_AS_SETTERS, false);
jacksonProvider.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.USE_BIG_DECIMAL_FOR_FLOATS, true);
jacksonProvider.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.USE_BIG_INTEGER_FOR_INTS, true);
return new Object[] {jacksonProvider};
}
@Path("/resource")
public static class Resource {