Generate Kotlin data classes from JSON
JetBrainsb16498e9-b8f9-4f65-a65e-34dc6536ebe0 · v—
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's 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
Rating distribution
Reviews 7
Even though I chose "gson" annotations, it didn't include @SerializedName annotations. Otherwise it seems to work pretty well
Good, but does not format the generated classes correctly and does not include a package declaration, leading to the files weirdly not importing until you add the package to each generated file. Took me half an hour to figure out I the import does not work because of the missing package, was quite confused.
Dont have options to generate in 1 file
Why only JSON and not also JSON Schema? https://json-schema.org/ As a developer, I would like to create kotlin data classes from JSON Schema.
It works, oddly It's generating the classes in my test package
nevermind -- figured it out -- thnks
Does it work with Android Studio 2.3.3? I can't seem to figure out how to make it go
Similar in “Code Tools”
Translation
db774541-6493-458b-aa54-2835e97ce04f
JPA Buddy
JetBrains
JetBrains Academy
JetBrains
Issue Trackers
JetBrains
IDE Features Trainer
JetBrains
Alibaba Java Coding Guidelines
2fbe0286-ab66-4c1a-b8f5-b6b9884a1f45