jackson-dataformat-xml
jackson-dataformat-xml copied to clipboard
Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
Normally XML document like: ``` 3 ``` would be exposed as equivalent to JSON ``` { "value" : "3" } ``` since that is typically the straight-forward and suitable representation...
If you encounter the following xml message  Use the following bean to receive an error will be reported(Duplicate property error)  How should I receive the above xml message?...
having this xml ``` ``` after `xmlMapper.readTree()` this is the result: ``` { "Site": { "id": "1", "session": "2" } } ``` it should be an array ``` { "Site":...
Hi, We are trying to process requests that look like: ` {name=cn=foo,ou=People,dc=xxx,dc=com}+(class=weblogic.security.principal.WLSUserImpl) . . . ` and we want to leverage Jackson annotations. We have been able to do that...
Using gradle, I include: ```gradle val jackson_version = 2.13.0 implementation("com.fasterxml.jackson.core:jackson-databind:$jackson_version") implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version") implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version") implementation("com.fasterxml.woodstox:woodstox-core:6.2.5") ``` ### Problem * I want to serialize a map as a list, and deserialize it as...
**Version: 2.12.3** Hi, I need to get XML root name when deserializing but the parser is too far away when my deserializer is called if there is no attribute on...
With 2.12, Jackson can parse xml iwith multiple repeated elements into a tree (ignore duplicate feature). This make it possible to parse, but create challenge with extracting data. the solution...
(for background, see #485 and #374 ) Currently XML backend does not support addition of extra "wrapping", indicated by `SerializationFeature.WRAP_ROOT_VALUE`: it does however support "unwrapping" (see `DeserializationFeature.UNWRAP_ROOT_VALUE`). It would make...
Currently in the xml-module you have to qualify each field with the wanted namespace. This in many ways are similar to JAXB, but JAXB provides @XmlSchema for adding namespaces at...
Hello everyone. The issue starts from the need of converting an object from an XML format to a `com.fasterxml.jackson.databind.JsonNode` instance and serialize it with a Wrapper object. I have created...