title: Parsing JSON with GSON, object sometimes contains list sometimes contains object
body: <p>I'm working with an API that sometimes contains a list of child objects:</p>
  
  <pre><code>{ 'obj' : { children: [ {id: "1"}, {id: "2"} ] } }
  </code></pre>
  
  <p>I can parse this no problem.  But if there just one child it doesn't return it as a list:</p>
  
  <pre><code>{ 'obj' : { children: {id: "1"} } }
  </code></pre>
  
  <p>My parser which expects a list then breaks.  Does anyone have a suggestion for how to deal with this?</p>