JSON to Kotlin Data Class

Generate Kotlin @Serializable data classes (kotlinx.serialization) from JSON. Useful for Android apps and KMP projects. Nested objects become nested data classes; non-Kotlin-valid keys get @SerialName annotations.

How to use the JSON to Kotlin Data Class

Paste JSON. Output uses kotlinx.serialization. For Moshi or Gson, swap the annotations — the data class structure is the same.