JSON To Kotlin Class (JsonToKotlinClass)

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Apr 25, 2018
25 307

Plugin for Kotlin to convert Json String into Kotlin data class code quickly

Features:

Generate Kotlin data class code from any legal JSON text.

Generate Kotlin data class File form any legal JSON text when right click on directory and select New->Kotlin data class File from JSON.

Support JSON Serialize Lib Annotation(Gson,Jackson,Fastjson,MoShi and LoganSquare,kotlinx.serialize(default custom value))

Support customize your own Annotation

Support init property with default value

Support make property type to be nullable(?)

Support auto make sure property type to be nullable(?) or not

Support auto rename property name to be camelCase when select a target JSON lib Annotation

Support generate kotlin data class code in split model

Support generate kotlin data class code in inner class model

Support generate kotlin data class File in inner class model

Support generate kotlin data class File in split files

Support format any legal JSON string

Support Generate Map Type
kotlin Json Gson Fastjson Moshi LoganSquare Kotlinx

Full Usage Documentation

Download plugin

Recent change notes


Add support for generating Kotlin data class file from JSON with click on the package directory

Add config option for auto make property type

Add support config for indent space number

Add support for generate Map type when json key is primitive type

General usage instructions

Hi,This is a very cool tool for Kotlin developers ,It can convert the Json String into Kotlin Data Class code ,and paste it into your editor file ,The tool could recognize the Primitive Type of Json String and make Type Identifier respectively ,It taste easily ,Just have test,guys! Just press short key ALT + K ,And then,start your Kotlin program travel !