Re: [jackson-user] The correct way to serialize / deserialize a Map to / from XML

2018-10-10 Thread Tatu Saloranta
On Fri, Sep 28, 2018 at 6:34 AM Tristan Lins wrote: > > Unfortunately I can not use POJOs because the data structure is completely > defined by the user. > > And a custom map deserializer is unfortunately difficult to implement because > the standard MapSerializer is not extendable. > Too many

Re: [jackson-user] The correct way to serialize / deserialize a Map to / from XML

2018-09-28 Thread Tristan Lins
Unfortunately I can not use POJOs because the data structure is completely defined by the user. And a custom map deserializer is unfortunately difficult to implement because the standard MapSerializer is not extendable. Too many private and final methods :-( I'll probably do it now with

Re: [jackson-user] The correct way to serialize / deserialize a Map to / from XML

2018-09-27 Thread Tatu Saloranta
On Thu, Sep 27, 2018 at 10:29 PM Tristan Lins wrote: > I need to serialize / deserialize a Map to / from XML with > dataformat-xml / XmlMapper. > > It works fine with JSON when using default typing. > But when deserialize the XML, the typing of primitive types (especially > numeric and boolean)

[jackson-user] The correct way to serialize / deserialize a Map to / from XML

2018-09-27 Thread Tristan Lins
I need to serialize / deserialize a Map to / from XML with dataformat-xml / XmlMapper. It works fine with JSON when using default typing. But when deserialize the XML, the typing of primitive types (especially numeric and boolean) get lost. Every number and boolean is treated as string, when