title: JAXB JSON force brackets on arrays
body: <p><br>
  I'm trying to force brackets on lists that contain only one element.</p>
  
  <p>I want something like this:<br>
  {"id":"0","industries":[{"id":"0","name":"Technologies"}],"name":"Google Inc."}</p>
  
  <p>But I get:<br>
  {"id":"0","industries":{"id":"0","name":"Technologies"},"name":"Google Inc."}</p>
  
  <p>Here is my Entity:</p>
  
  <pre><code>@Entity
  @XmlRootElement
  public class Company {
   private int id;
  
   private String name;
   private String description;
  
   @XMLElement(name="industries")
   private List&lt;Industry&gt; industryList;
  
      [...]
  </code></pre>
  
  <p>And finally, my JAXB Context Resolver:  </p>
  
  <pre><code>public JAXBContextResolver() throws Exception {
  </code></pre>
  
  <p>MappedBuilder builder = JSONConfiguration.mapped();
    builder.arrays("industries");
    builder.rootUnwrapping(true);</p>
  
  <p>this.context = new JSONJAXBContext(builder.build(), Company.class);
   }</p>