Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

Notifications You must be signed in to change notification settings

Mighty16/JSONToKotlinClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /