A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"id":1,"name":"Kotlin","stable":true,"versions":[1.8,1.9,2.0]}data class Root(
val id: Int,
val name: String,
val stable: Boolean,
val versions: List<Double>
)
Generate a Kotlin data class from a JSON sample. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.