title: RESTEasy / Jettison, return Java object as JSON without the root node
body: <p>I'm using RESTEasy to return Java objects as JSON objects (which is using Jettison Mapped Convention for JSON marshelling).</p>
  
  <p>But I don't want it to return the root node.</p>
  
  <p>For example</p>
  
  <pre><code>@XmlRootElement
  public class Car{
      private Integer id;
      private String name;
  }
  </code></pre>
  
  <p>An object of this class would result in JSON:</p>
  
  <pre><code>{"Car":{"id":6,"name":"someName"}}
  </code></pre>
  
  <p>Because it's actually coming from</p>
  
  <pre><code>&lt;Car&gt;
      &lt;id&gt;6&lt;/id&gt;
      &lt;name&gt;someName&lt;/name&gt;
  &lt;/Car&gt;
  </code></pre>
  
  <p>But I don't want the root node. I just want:</p>
  
  <pre><code>{"id":6,"name":"someName"}
  </code></pre>
  
  <p>So I can use it with client libraries likes Backbone.js</p>
  
  <p>Is there any way (some annotation) to force this on the JSON marshelling ?</p>
  
  <p>Sam,</p>