FreeDev Tools

JSON to Kotlin Data Class Generator

Generate Kotlin data classes with SerializedName annotations from JSON.

Kotlin data classes are the idiomatic way to represent JSON data in Android development and backend Kotlin services. They automatically provide equals(), hashCode(), and copy() methods. The @SerializedName annotation from Gson maps JSON keys to Kotlin property names, and nullable types use the ? suffix.

Frequently Asked Questions

It generates Kotlin data classes with @SerializedName annotations for Gson, or @Json for Moshi compatibility.