I\'m building a RESTful API and I have a use case where I need to be able to render two different views of my data. One that we can use internally and one that we will expo
I was able to get this working by adding a new library to override the default:
com.fasterxml.jackson.core
jackson-databind
2.0.6
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
2.0.5
com.fasterxml
aalto-xml
0.9.8
So now I can serialize to JSON and XML using Jackson and their @JsonView functionality. Very clean! The one I added was aalto-xml.