title: Spring 3 ArrayList serialization to JSON with Jackson without wrapping to object (without name)
body: <p>I have simple resource which should return JSON array, but it returns object in which is array:</p>
  
  <pre><code>@RequestMapping(value = "/types", method = RequestMethod.GET)
      public List &lt;JsonObject&gt; types() {
          ArrayList &lt;JsonObject&gt; list=new ArrayList&lt;JsonObject&gt;();
          list.add(new JsonObject("Audi"));
          list.add(new JsonObject("Mercedes"));
          return list;
      }
  </code></pre>
  
  <p>Where JsonObject is simple class with three String atributes (value,id,label).</p>
  
  <p>Returns:</p>
  
  <pre><code>{"jsonObjectList":[{"value":"Audi","id":"Audi","label":"Audi"},{"value":"Mercedes","id":"Mercedes","label":"Mercedes"}]}
  </code></pre>
  
  <p>But I what I need (because it's Jquery UI autocomplete expected):</p>
  
  <pre><code>[{"value":"Audi","id":"Audi","label":"Audi"},{"value":"Mercedes","id":"Mercedes","label":"Mercedes"}]
  </code></pre>
  
  <p>How to achieve that?
  Thanks in advance.</p>