SkillAgentSearch skills...

JSONToKotlinClass

Intellij Idea, Android Studio plugin for generating Kotlin data classes from JSON. Helps to avoid writing boilerplate code for model classes. Supports annotations for Gson, Moshi, Jackson.

Install / Use

/learn @Mighty16/JSONToKotlinClass
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

JSONToKotlinClass

Intellij Idea, Android Studio plugin.

Android Arsenal

Plugin generates Kotlin data classes from JSON text. It can find inner classes in nested JSON. You can disable undesirable fields in class, change field name, set it type to optional, specify default value and add annotations for popular json libraries.

Features:

• json highlight and validation<br /> • nested json parsing<br /> • var/val support<br /> • default value support<br /> • generation to single file<br /> • annotations for Gson, Moshi, Jackson<br />

Download

You can install it from <a href="https://plugins.jetbrains.com/plugin/10054">plugin repository</a>

How to use

Right click on package -> Generate class from JSON -> Copy json, type class name -> Check field names and types -> Generate

<img src="images/demo_gif.gif" width="100%" height="100%">

License

MIT License

Copyright (c) 2017 Mighty16

View on GitHub
GitHub Stars145
CategoryCustomer
Updated27d ago
Forks11

Languages

Java

Security Score

100/100

Audited on Mar 5, 2026

No findings