Re: [jackson-user] UnrecognizedPropertyException - ignore by default?

2016-09-08 Thread Nate Bauernfeind
I'm going to direct you here: http://stackoverflow.com/questions/5455014/ignoring-new-fields-on-json-objects-using-jackson There are two answers, 1. annotate your models: '@JsonIgnoreProperties(ignoreUnknown = true)' 2. Ignore unknown properties globally for an entire mapper: objectMapper.configur

Re: [jackson-user] UnrecognizedPropertyException - ignore by default?

2016-09-08 Thread Tatu Saloranta
Yes. Also, with 2.8, there is a programmatic alternative to per-class `@JsonIgnoreProperties` annotation: mapper.configOverride(MyPOJO.class) .setIgnorals(JsonIgnoreProperties.Value.forIgnoreUnknown(false)); which can be used to disable or enable exception throwing on specific clas

Re: [jackson-user] Deprecated findSerializationType might be breaking refineSerializationType (v2.8.1)

2016-09-08 Thread Tatu Saloranta
As a follow up, turns out that the problem is, as far as I can see: https://github.com/FasterXML/jackson-databind/issues/1338 in the code itself. Issue has full detail, but basically Jackson is indicating a real problem in annotation for @JsonSerialize( keyAs=String.class) public Map getReve