title: Ktor: Serialize/Deserialize JSON with List as root in Multiplatform
body: <p>How can we use kotlin.serialize with Ktor's HttpClient to deserialize/serialize JSON with lists as root?  I am creating the HttpClient as follows:</p>
  
  <pre><code>HttpClient {
         install(JsonFeature) {
             serializer = KotlinxSerializer().apply {
                 setMapper(MyClass::class, MyClass.serializer())
                 setMapper(AnotherClass::class, AnotherClass.serializer())
             }
         }
         install(ExpectSuccess)
     }
  </code></pre>
  
  <p>Appears I need to setMapper for List, however that is not possible with generics.  I see I can get the serializer for it with MyClass.serializer().list, but registering it to deserialize/serialize on http requests is not straight forward.  Anyone know of a good solution?</p>