title: deserialize a json array using xstream
body: <p>There is a lot information at stackoverflow about how  to deserialize a json array using Gson.</p>
  
  <p>But how can I do the same using <code>XStream</code> with jettison?</p>
  
  <p>Here is json:</p>
  
  <pre><code>{"entity":[{"id":"1", "name":"aaa"}, {"id":"2", "name":"bbb"}]}
  </code></pre>
  
  <p>Here is <code>XStream</code> code how I try to parse it:</p>
  
  <pre><code>XStream xstream = new XStream(new JettisonMappedXmlDriver());
  xstream.alias("entity", Entity[].class);
  return (Entity[])xstream.fromXML(jsonString);
  </code></pre>
  
  <p>I have following exception:</p>
  
  <pre><code>com.thoughtworks.xstream.converters.ConversionException: id : id
  </code></pre>