title: Converting JSON to XML and vice versa using Jackson API and JAXB Annotations
body: <p>I'm trying to write a code which can take either XML or JSON input and output JSON or XML respectively. I.e, if I give XML it should give back JSON, and if I give JSON it should give XML output. </p>
  
  <p>I was told this is possible using Jackson API and JAXB Annotations. Can anyone help me out with this?</p>