title: When a list has only one element, CXF return the object instead a js array
body: <p>I'm using CXF to create restful services. One of the services return a list of string. When I have more than one item in the list, the CXF returns an array of strings, but when I have only one element, it returns the String instead an array with a json:</p>
  
  <p>With one Item:</p>
  
  <pre><code> {"ImageResponse":{"images":"hello"}}
  </code></pre>
  
  <p>With two Items:</p>
  
  <pre><code> {"ImageResponse":{"images":["hello","hi"]}}
  </code></pre>
  
  <p>Is there a way to always return a list, even when the list has only one item?</p>
  
  <p>My Response class:</p>
  
  <pre><code>@XmlRootElement
  public class ImageResponse {
  private List&lt;String&gt; images;
  //getter and setter
  }
  </code></pre>