JSONToKotlinClass

by Mighty16

Intellij Idea, Android Studio plugin for generating Kotlin data classes from JSON. Helps to avoid wr...

130 Stars 10 Forks Last release: over 2 years ago (v0.9.5) MIT License 16 Commits 1 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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
• nested json parsing
• var/val support
• default value support
• generation to single file
• annotations for Gson, Moshi, Jackson

Download

You can install it from plugin repository

How to use

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

License

MIT License

Copyright (c) 2017 Mighty16

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.