Paste a JSON sample and get Kotlin data classes marked @Serializable for kotlinx.serialization. Nested objects become their own data classes.
{
"name": "parsebox",
"version": "2.1.0",
"private": false,
"maintainers": [
{ "name": "Ada Lovelace", "email": "[email protected]", "active": true },
{ "name": "Alan Turing", "email": "[email protected]", "active": false }
],
"build": {
"target": "es2022",
"minify": true,
"port": 5173
}
}import kotlinx.serialization.Serializable
@Serializable
data class Root(
val name: String,
val version: String,
val private: Boolean,
val maintainers: List<Maintainer>,
val build: Build,
)
@Serializable
data class Maintainer(
val name: String,
val email: String,
val active: Boolean,
)
@Serializable
data class Build(
val target: String,
val minify: Boolean,
val port: Int,
)ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.