title: Is there a way to get the Jersey automatically generated plural element name around a collection of JAXB elements with EclipseLink Moxy?
body: <p>I am using the Jersey 2.1 API to return lists of JAXB annotationed objects.</p>
  
  <p>I have a class Person </p>
  
  <pre><code>@XmlRootElement(name = "person")
  public class Person {  ...
  </code></pre>
  
  <p>In the Jersey API, when I return a List of Person and have the output set to xml, it creates a wrapper called &lt;People&gt; around my list:</p>
  
  <pre><code>&lt;People&gt;
     &lt;Person&gt;
        .. fields
     &lt;/Person&gt;
  &lt;/People&gt;
  </code></pre>
  
  <p>when I set the output to JSON format it does not add this extra People wrapper and I would like it to.  I am using EclipseLink Moxy as the JSON provider.  Is there a way to get the JSON output to look the same as the XML?</p>
  
  <p>I came across a field for the Jersey 1.X API called FEATURE_XMLROOTELEMENT_PROCESSING that is supposed to enable this, but I don't know how to set this in 2.x.  And the fact that it is doing it for XML output seems to indicate that it is already set.  I just need to get the JSON to be the same!</p>
  
  <p>Any help would be appreciated, thanks!</p>