jackson-dataformat-xml icon indicating copy to clipboard operation
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

Results 119 jackson-dataformat-xml issues
Sort by recently updated
recently updated
newest added

Using `@JacksonXmlElementWrapper` and `@JacksonXmlProperty` annotations with Java records results in deserialization exception. For example, I'd expect following XML: ```xml given text ``` to deserialize into following java records: ```java public...

record

XML parsing fails when mapping to polymorphic class using `JsonTypeInfo.Id.DEDUCTION` and a property of the class is a flat list of elements where `@JacksonXmlElementWrapper(useWrapping = false)` is used. Reproducable example...

has-failing-test

## Description I describe the issue with short snippets of code. A self-contained example trails this post. ## Versions Using gradle, I include: 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")...

I've been working with a lot of web APIs and converting the JSON to XML using XmlMapper. It generally works great, but I have an example that creates invalid XML....

test-needed

After upgrading jackson dependencies from 2.10.1 to 2.13.1 , some of our Junit failed , regarding XML serialization. ```xml com.fasterxml.jackson.dataformat jackson-dataformat-xml 2.13.1 ``` Providing this simple class ```java @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name...

In Jackson 2.12 the following junit example test (written in Kotlin) works as I'd expect it to ```kotlin @JsonIgnoreProperties(ignoreUnknown = true) data class Tspan( @field:JacksonXmlText var content: String? = null...

test-needed

如果遇到以下的xml报文 ![image](https://user-images.githubusercontent.com/35912968/143553028-d0ed1156-1055-4a20-90e0-9f251bd494b9.png) 使用如下实体类接收将会报错 @JackSonXmlElementWrapper(localName="array") @JackSonXmlProperty(localName="EquipArray") private List equipArray; @JackSonXmlElementWrapper(localName="array") @JackSonXmlProperty(localName="MachArray") private List machArray; 请问应该如果接收这样的xml报文?

It seems that deserialising into an empty record does not work correctly, however the same example with an "empty" class works just fine. Here's a snippet of code to reproduce:...

As described first in FasterXML/jackson-module-kotlin#396, 2.12.0 has introduced a regression to the `XmlMapper`. I have managed to reproduce the regression in the below Java snippet, which works on 2.11.4, but...

2.14

Hello, we are currently trying to upgrade `jackson-dataformat-xml` in our product from `2.11.4` to `2.12.4`. However, with the new version we encounter problems when it comes to using `defaultUseWrapper(false)` in...