title: How to parse un json string into a List with MOSHI
body: <p>I'm looking to parse a a result json who built like that :</p>
  <pre><code>{&quot;list&quot;: [
          {
              &quot;data1&quot;: &quot;data1&quot;,
              &quot;transaction&quot;: {
                  &quot;data2&quot;: &quot;data2&quot;,
                  &quot;data3&quot;: &quot;data3&quot;
              },
              &quot;breakdowns&quot;: [
                  {
                      &quot;data4&quot;: &quot;data4&quot;,
                      &quot;data5&quot;: &quot;data5&quot;
                  }
              ]
          }
  ]}
  </code></pre>
  <p>I'm using moshi and okHttpClient to handle this json.
  I build the data class correclty</p>
  <p>So now when I try to parse it (like that) :</p>
  <pre><code> 200 -&gt; {
  val moshi = Moshi.Builder()
  .add(KotlinJsonAdapterFactory())
  .build()
  
  val type: Type = Types.newParameterizedType(List::class.java,PaymentRequest::class.java)
  
  try{
     val q: JsonAdapter&lt;List&lt;PaymentRequest&gt;&gt; = moshi.adapter(type)
     paymentRequest = q.fromJson(response.body!!.source())!!
  }catch (e: Exception) {
     println(e)
  }
  
  }
  </code></pre>
  <p>And I got this error : <strong>com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $</strong></p>