title: Parse JSON object string from json value
body: <p>I'm making a request to a request to an API and the response is a JSON object, this json object contains a string that is another json object. I'm trying to use kotlinx.serialization to handle the deserialization of this object.</p>
  
  <p>I could override the deserialize functionality myself but that kind of defeats the point of using this library</p>
  
  <p>I hoped something like this would have worked.</p>
  
  <pre><code>@Serializable
  data class Foo(val data: Data)
  
  @Serializable
  data class Data(val foo: String)
  </code></pre>
  
  <p>For something like the following Object</p>
  
  <pre><code>{
    "data":"{\"foo\":\"bar\"}"
  }
  </code></pre>
  
  <p>I expect to get an Object Foo with property data = Object Data with property foo = "bar"</p>
  
  <p>However I get the following error</p>
  
  <pre><code>java.lang.IllegalStateException: Expected class kotlinx.serialization.json.JsonArray (Kotlin reflection is not available) but found class kotlinx.serialization.json.JsonLiteral (Kotlin reflection is not available)
  </code></pre>