JSON to Kotlin
Convert JSON to Kotlin data classes online for free — nested objects become data classes with default values. No upload.
Kotlin output
// Generated by blackdroid.dev
data class Root(
val id: Long,
val name: String,
val email: String,
val active: Boolean,
val balance: Double,
val address: Address,
val roles: List<String>
)
data class Address(
val street: String,
val city: String,
val zip: String
)About JSON to Kotlin
Paste JSON and get Kotlin data classes — nested objects become their own data classes, arrays become List<T> and fields missing across array items become nullable with defaults.
Ready for kotlinx.serialization or Gson-style models in Android and Ktor apps. Generation runs entirely in your browser — your JSON is never uploaded.