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.
Related Tools
JSON FormatterFormat, validate, and minify JSON with syntax highlightingJSON DiffCompare two JSON objects side-by-side and highlight differencesJSON to CSVExport JSON arrays to CSV with nested object flatteningCSV to JSONParse CSV files into structured JSON arraysJSON to XMLConvert JSON objects to XML with pretty-print outputXML to JSONParse XML and convert to clean JSONJSON to YAMLConvert between JSON and YAML formats bidirectionallyQuery String to JSONParse URL query parameters into JSON with nested support