☰
Home
/
Code Generators
/
JSON → Kotlin
K
JSON → Kotlin
Generate Kotlin data class from JSON
☆
Bookmark
Loading tool…
JSON input
{ "id": 1, "name": "Ada Lovelace", "email": "ada@example.com", "isActive": true, "score": 98.6, "tags": ["admin", "developer"], "address": { "street": "123 Main St", "city": "London" }, "orders": [{ "id": 101, "total": 49.99, "shipped": false }] }
Kotlin output
⧉ Copy
data class Address( val street: String, val city: String, ) data class Order( val id: Int, val total: Double, val shipped: Boolean, ) data class Root( val id: Int, val name: String, val email: String, val isActive: Boolean, val score: Double, val tags: List<String>, val address: Address, val orders: List<Order>, )