In (at least) one of our projects we are using Jackson to map bewtween JSON and Java objects and vice versa. We are also using Jettison to map between XML input streams to JSON objects (and vice versa).
A typical use case of the latter is to apply an XSLT transformation on a source XML document to a "JSONized" XML structure, which can be directly rendered as JSON using a StaxStreamResult
and a MappedXMLStreamWriter
. Now, I'm curious if Jackson can do the same as Jettison in the XSLT area. I've studied the documentation and scrutinized the JAR deliverables, and my conclusion is: No, it cannot. But I may have missed something.
So, this is a sanity check. Can I use Jackson to perform XSLT transformations from XML to JSON as well as from JSON to XML, and expect the same result as with Jettsion?