I have been using xsd to prepare data transfer model. By now we were ok to use XML format and hence were using xjc to generate the same (using maven plugin).
Now we need to move way from XML and use Json. Is there a plugin or better way with which u still use xsd and generate Json compatible model with proper annotations like @JsonRootName, @JsonInclude etc.
Jackson 2 is able to recognize JAXB annotations (which are generated by xjc): https://github.com/FasterXML/jackson-modules-base/tree/master/jaxb
So by using Jackson as preferred serializer, all your existing Pojo's will automatically - and with no cost - become JSON friendly !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With