Paste a JSON sample and get Kotlin data classes: String, Long, Double, Boolean, List<T>, nested classes, nullable types with = null for fields some records lack, and @SerialName where a key isn't a camelCase name. Turn off kotlinx.serialization under Options for plain data classes.
It runs entirely in your browser; nothing is uploaded.
Need a different language? See all JSON-to-code converters.
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.