title: Parse JSON without data class in Kotlin?
body: <p>There are many JSON parsers in Kotlin like Forge, Gson, JSON, Jackson... But they deserialize the JSON to a data class, meaning it's needed to define a data class with the properties corresponding to the JSON, and this for every JSON which has a different structure.</p>
  <p>But what if you don't want to define a data class for every JSON you could have to parse?</p>
  <p>I'd like to have a parser which wouldn't use data classes, for example it could be something like:</p>
  <pre><code>val jsonstring = '{&quot;a&quot;: &quot;b&quot;, &quot;c&quot;: {&quot;d: &quot;e&quot;}}'
  
  parse(jsonstring).get(&quot;c&quot;).get(&quot;d&quot;) // -&gt; &quot;e&quot;
  </code></pre>
  <p>Just something that doesn't require me to write a data class like</p>
  <pre><code>data class DataClass (
      val a: String,
      val b: AnotherDataClass
  )
  
  data class AnotherDataClass (
      val d: String
  )
  </code></pre>
  <p>which is very heavy and not useful for my use case.</p>
  <p>Does such a library exist? Thanks!</p>