title: Android Kotlin + Klaxon - Parsing a JSON root array
body: <p>I have a JSON asset with a root array:</p>
  
  <pre><code>[
    {
      "word": "word",
      "label": "label"
    },
    {
      "word": "word2",
      "label": "label2"
    }
  ]
  </code></pre>
  
  <p>I'm trying to parse it using Klaxon.</p>
  
  <p>So far I have tried several methods:</p>
  
  <pre><code>val wordDict = Klaxon().parse&lt;List&lt;DictWord&gt;&gt;( activity.assets.open("dict.json") )
  
  val wordDict = Klaxon().parse&lt;Array&lt;DictWord&gt;&gt;( activity.assets.open("dict.json") )
  
  val wordDict = Klaxon().parse&lt;JsonArray&lt;DictWord&gt;&gt;( activity.assets.open("dict.json") )
  </code></pre>
  
  <p>Which either result in an empty list or an exception:</p>
  
  <blockquote>
    <p>java.lang.ClassCastException: com.beust.klaxon.JsonArray cannot be
    cast to com.beust.klaxon.JsonObject</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>