Generate Kotlin data classes and models from JSON data structures
Enter JSON data to generate Kotlin data classes
Supports data classes, kotlinx.serialization and null safety
The generator creates Kotlin data classes with support for kotlinx.serialization, Gson, and Jackson annotations for JSON serialization, plus modern Kotlin language features like null safety and data classes.
Yes! Choose 'kotlinx' as the framework to generate classes with @Serializable and @SerialName annotations for type-safe JSON serialization support.
When selecting Gson or Jackson frameworks, the generator adds appropriate annotations (@SerializedName or @JsonProperty) to fields for proper JSON serialization/deserialization.
You can specify a custom package name in the options. The generator will add the appropriate package declaration at the top of the generated Kotlin file.