Re: [jackson-user] how to convert a xml string to java list with xmlmapper?

2019-01-02 Thread Tatu Saloranta
On Wed, Jan 2, 2019 at 8:39 AM <915702...@qq.com> wrote: > i have a xml string like this: > >123 > 456 > > > how to i got List a or more generally List if the > element has child element? > > > The general way to figure out how (and if -- Jackson does NOT guarantee it can deserialize all

Re: [jackson-user] class level JsonSerializable vs Method level

2019-01-02 Thread Tatu Saloranta
On Wed, Jan 2, 2019 at 4:09 PM matt Smith wrote: > I just added @JsonAnyGetter to the wrapper class and now when I write > mapper.writeValueAsString(wrapper), it gives the expected output. I don't > understand why but it just works! > > @JsonAnyGetter > @JsonSerialize(contentUsing = Item

Re: [jackson-user] class level JsonSerializable vs Method level

2019-01-02 Thread matt Smith
I just added @JsonAnyGetter to the wrapper class and now when I write mapper.writeValueAsString(wrapper), it gives the expected output. I don't understand why but it just works! @JsonAnyGetter @JsonSerialize(contentUsing = ItemRowSerializer.class) private Map foo; On Monday, Decem

[jackson-user] how to convert a xml string to java list with xmlmapper?

2019-01-02 Thread 915702723
i have a xml string like this: 123 456 how to i got List a or more generally List if the element has child element? -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send