[jackson-user] Multiple properties with the same name

2018-09-05 Thread tappe
I need to serialize/deserialze some xml data like this: 1 2 ... a b c ... 3 4 5 ... Where MyPropB has to have at least 1 element! So even for deserialization it's clear where all the MyPropA items belong to. This simple approach does (of course) n

[jackson-user] Map.Entry implementations deserialization issue

2018-09-05 Thread Alexey Tatarikov
Here is sample pojo: @Getter @Setter @Builder @NoArgsConstructor @AllArgsConstructor public class Pair extends BaseObject implements Map.Entry { private T key; private V value; @Override public V setValue(V value) { this.value = value; return value; } } it i

Re: [jackson-user] Map.Entry implementations deserialization issue

2018-09-05 Thread Tatu Saloranta
On Wed, Sep 5, 2018 at 7:21 AM Alexey Tatarikov wrote: > > Here is sample pojo: > > @Getter > @Setter > @Builder > @NoArgsConstructor > @AllArgsConstructor > public class Pair extends BaseObject implements Map.Entry { > > private T key; > private V value; > > @Override > public V s

Re: [jackson-user] Multiple properties with the same name

2018-09-05 Thread Tatu Saloranta
On Wed, Sep 5, 2018 at 1:18 AM wrote: > > I need to serialize/deserialze some xml data like this: > > > 1 > 2 > ... > a > b > c > ... > 3 > 4 > 5 > ... > > > > Where MyPropB has to have at least 1 element! So even for deserialization > it's clear wher

[jackson-user] StdDeserializer<> and Array Datasets

2018-09-05 Thread Brexton Popejoy
I am writing a custom `StdDeserializer` that will take a json with the root node being an array and import it as an array of RuleSet objects. I wrote most of the code for a single case (for importing just the first ruleset from the json array, and I had no issues. However now that I've changed