title: Parse JSON key that is either object or array of object
body: <p>In Moshi, is it possible to create a type adapter that would parse both an object or a list of objects of the same type?</p>
  
  <p>For example, sometimes the JSON is:</p>
  
  <pre><code>{
    "person": {...}
  }
  </code></pre>
  
  <p>Other times it is:</p>
  
  <pre><code>{
    "person": [{...}, {...}]
  }
  </code></pre>
  
  <p>Ideally, I'd want to have a Java object looking like this:</p>
  
  <pre><code>class PersonContainer {
    @PersonsList List&lt;Person&gt; persons; // @List(Person.class) would be even better
  }
  </code></pre>