Plugin Icon if
  • Code Tools

JSON To Kotlin Class (JsonToKotlinClass)

Обновлено:
5 месяцев назад
Версия:

3.7.6

Обзор
Версии

Обзор


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

Версии

Версия
Диапазон совместимости
Дата обновления
2024
3.7.6
201.6668+
03.12.2024
Скачать
Plugin ID:
wu.seal.tool.jsontokotlin
icon