title: jaxb single element in array
body: <p>I'm using JAXB/Jersey (1.3) to convert java to json in a REST API. The java class I'm returning is like:</p>
  
  <pre><code>public class MyClass {  
    List&lt;String&gt; myTags;
    public List&lt;String&gt; getMyTags() {
      return myTags;
    }
  }
  </code></pre>
  
  <p>My problem is that if there is only a single element in the list <em>myTags</em>, then the data is converted to json as a string object, not an array of strings.  That is, I get:</p>
  
  <pre><code>{
    "myTags": "myString"
  }
  </code></pre>
  
  <p>What I want is:</p>
  
  <pre><code>{
     "myTags": ["myString"]
  }
  </code></pre>
  
  <p>Anyone know whats up ? </p>