Loading editor...
Loading editor...
// Generated Kotlin code will appear here...
settings
Generate Kotlin data classes from JSON data instantly. Choose between Kotlinx Serialization, Jackson, or Moshi annotations.
Features
- Generate Kotlin data classes from JSON
- Kotlinx Serialization, Jackson, and Moshi support
- Nullable type handling
- Default value generation
- Nested data class generation
- Copy generated code to clipboard
How to Use
- Paste your JSON — Enter a sample JSON object.
- Select library — Choose Kotlinx Serialization, Jackson, or Moshi.
- Copy Kotlin code — Get production-ready data classes.
FAQ
What serialization libraries are supported?
Kotlinx Serialization (@Serializable), Jackson (@JsonProperty), and Moshi (@Json).
How are nullable fields handled?
Nullable fields generate as String?, Int?, etc. with appropriate default values.
