JSON To Kotlin Class (JsonToKotlinClass)

Генерация data-классов Kotlin из JSON, JSON Schema или ответа по URL

seal wuДанные и API176 загрузок


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

Fast use it with short cut key ALT + K on Windows or Option + K on Mac

Features:

Generating Kotlin class from any legal JSON string/JSONSchema or any URLs that returns a JSON string/JSONSchema as response
Generating Kotlin class from any legal JSON text when right click on directory and select New -> Kotlin class File from JSON

Supporting (almostly) all kinds of JSON libs' annotation(Gson, Jackson, Fastjson, MoShi and LoganSquare, kotlinx.serialization(default custom value))

Customizing your own annotations

Initializing properties with default values

Allowing properties to be nullable(?)

Determining property nullability automatically

Renaming property names to be camelCase style when selecting a target JSON lib annotation.

Generating Kotlin class as individual classes

Generating Kotlin class as inner classes

Formatting any legal JSON string

Generating Map Type when json key is primitive type

Only create annotation when needed

Custom define data class parent class

Sort property order by Alphabetical

Make keyword property valid

Support Loading JSON From Paster/Local File/Http URL

Support customize your own plugin by Extension Module


demo

kotlin Json Gson Fastjson Moshi LoganSquare Kotlinx

Full Usage Documentation

ВерсияOpenIDEДатаРазмер
2020.1+19.04.20252 МБСкачать
2020.1+03.12.20242 МБСкачать