Compatible with: IntelliJ IDEA Android Studio
Jan 25, 2017
10 377
Allows for easy creation of Java POJOs from JSON, with GSON annotations and accessors. Once installed, just right-click on the destination package and choose "New -> Generate POJOs from JSON", then enter in your root class name and source JSON text.

Source code available on GitHub.

Download plugin

Recent change notes

1.0.7 - Sanitizing JSON property names better to remove characters that are invalid for Java identifiers.

General usage instructions

Install the plugin in IntelliJ / Android Studio by opening Preferences -> Plugins -> Search for "Json2Pojo". Right-click on the target package, select New -> "Generate POJOs from JSON". Enter the root class name and enter your source JSON text. The plugin will generate your new classes in the target directory for easy deserialization with GSON.