title: How to use JSONObject from Kotlin JS
body: <p>I am new to Kotlin JS.</p>
  <p>I am trying to port the business logic of my android app to Kotlin JS.</p>
  <p>My app uses the class org.json.JsonObject to do custom serialization. I can't use KotlinX serialization with annotations because my classes are inline and these annotations are not supported.</p>
  <p>The Kotlin-JS project uses Gradle Kotlin DSL. I am specifying the dependency as &quot;implementation (&quot;org.json:json:20190722&quot;)&quot;. The compiler throws the error &quot;unresolved reference&quot; for anything from the library. I suspect it is not legal to link to a java library this way for Kotlin-JS. Is this true?</p>
  <p>What is the best way to get an implementation of JsonObject into my app? Do I need to copy the source code into my project and compile it to JS myself?</p>
  <p>Thanks for any help.</p>