Luckily, the internet is a big place and I could find several examples of such XSD's such as; <a href="http://xml.calldei.com/JsonXML.">http://xml.calldei.com/JsonXML.</a> This way, only a single set of JAX-B classes can be used and only two pieces of mapping code to make the transformation work.