Strange behavier with generate JSON from object
<p>This is part of my code:</p>

<pre><code>@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OAType", propOrder = {
    "cDefCamelTDPDataList",
})
public class OAType {

    @XmlElement(name = "c-def-camel-TDP-data-list", required = true)
    protected cDefCamelTDPDataListType cDefCamelTDPDataList;
    ...
</code></pre>

<p>When I create json with:</p>

<pre><code>ObjectMapper mapper = new ObjectMapper();
mapper.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY);
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);

mapper.writerWithDefaultPrettyPrinter().writeValueAsString(tag); // Object tag
</code></pre>

<p>I get:</p>

<pre><code>{
"cDefCamelTDPDataList" : { },
"cdefCamelTDPDataList" : { },
...
</code></pre>

<p>I didn't understand where is mistake, why does Jackson create 2 times cDefCamelTDPDataList field?  </p>