G

Generate Kotlin data classes from JSON

JetBrains

b16498e9-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

Code Tools
Open in store ↗ id: 10054
Downloads
45K
44 904
Rating
4.1 ★
6 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 6 ratings
5★ 33.3%
4★ 50.0%
1★ 16.7%

Reviews 7

★★★★★ tobbbe 2017-11-27

Even though I chose "gson" annotations, it didn't include @SerializedName annotations. Otherwise it seems to work pretty well

★★★★★ Benjamin Fercher 2017-10-25

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.

★★★★★ ascacscs 2017-11-02

Dont have options to generate in 1 file

★★★★★ starpebble 2019-02-08

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.

★★★★★ locofrank 2017-10-23

It works, oddly It's generating the classes in my test package

★★★★★ locofrank 2017-10-23

nevermind -- figured it out -- thnks

★★★★★ locofrank 2017-10-23

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”