final ObjectMapper objectMapper = new ObjectMapper(null, null, deserializerProvider);
final SimpleModule jsonModule = new SimpleModule("json", new Version(1, 0, 0, null));
jsonModule.addSerializer(JsonRepresentation.class, new JsonRepresentationSerializer());
objectMapper.registerModule(jsonModule);
objectMapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
objectMapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
return objectMapper;
}
private static JsonMapper instance = new JsonMapper();