FasterXML / FasterXML/jackson-databind

Deserializing nested xml within json

Open
#2,242 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
3.7k
Forks
1.5k
Avg merge
3d 6h
Merged PRs (30d)
28

Description

Is there a way to somehow deserialize nested xml witout custom deserializer?. We have some huge json which has a field which actually contains text with xml, so we would like to just mark it some annotation to point jackson that it's should be deserialized by another way. Seems like default implementation tries to invoke a constructor with String argument on an object that should be deserialized. The way we use is custom deserializer for a json field which contains that text and then we use default XmlMapper.
That's some kind of what we need to deserialize:
`{
"metadata": "some difficult XML data is here"
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.