title: Marshalling the Java objects (without @XmlRootElement) to JSON via Jettison
body: <p>I have done the marshalling of an JAXB object (Which contains @XmlRootElement) to JSON using Jettison. But I can not convert a simple java object which has no annotations like @XmlRootElement to JSON. I would like to know "Is it mandatory to have that @XmlRootElement to marshall an object to JSON?"</p>
  
  <p>I am getting the following Exception when I try to marshall the java object to Json  </p>
  
  <pre><code>com.sun.istack.SAXException2: unable to marshal type "simpleDetail" as an element because it is missing an @XmlRootElement annotation
  </code></pre>
  
  <p>What could be the issue?</p>