Re: [jackson-user] Custom Deserializer

2018-04-09 Thread sean
That worked. Thanks for the suggestion Tatu. On Monday, April 9, 2018 at 6:47:15 PM UTC-4, Tatu Saloranta wrote: > > Do you think `@JsonAnySetter` would work here, attached to Map? It > would get all values that do not map to existing regular properties? > It wouldn't do anything for

Re: [jackson-user] Custom Deserializer

2018-04-09 Thread Tatu Saloranta
Do you think `@JsonAnySetter` would work here, attached to Map? It would get all values that do not map to existing regular properties? It wouldn't do anything for underscores but would allow easy collection. Or, if you want to strip underscore, you could specify method instead @JsonAnySetter

[jackson-user] Custom Deserializer

2018-04-09 Thread sean
Hello, I'm trying to figure out the best way to implement a deserializer for the following setup: class Model { private String prop1; private String prop2; Map userDefined; } json: { "prop1": "prop one", "prop2": "prop two", "_prop3": "prop three", "_prop4":

Re: [jackson-user] Jackson 2.9.5 case sensitive problem

2018-04-09 Thread Marte Marte
Thanks for suggestion, point 2) solve problem for me! I've made with my test case an example repo here: https://github.com/albertotn/Jackson-dataformat-xml-test Il giorno sabato 7 aprile 2018 00:09:01 UTC+2, Tatu Saloranta ha scritto: > > Ok, couple of notes: > > 1. Jackson does not know or