JetBrains IDE plugin
Oskuvi JSON from Classes
Writes a sample JSON for a Java class, with a value of the right kind for every field.
Writes the Java classes that fit a JSON sample: paste the JSON, see the classes, press Create.
Oskuvi Classes from JSON writes the Java classes that fit a JSON text. Right-click a package and choose New | Classes from JSON…; if a JSON object is on the clipboard it is already there, and the classes appear beside the sample as you type.
Types come from the sample: whole and decimal numbers by their size, lists, nested objects, and a class of its own for every object. A list of objects becomes one class that fits them all, and a field that is missing or null in one of them gets a type that can hold nothing. What a sample can't tell is said, not guessed.
The plugin works on your machine. The sample goes nowhere, and it doesn't add Jackson, Gson or Lombok to your project.
(02)Who it's for
(03)Key features
Plain Java classes, one file per class or everything nested in one file.
A mistake in the JSON is named with its line and column: a comma too many, single quotes, a key without quotes.
Nothing is written over an existing file, and one Undo takes all the new files away.
Write records, or classes with Lombok's @Data.
@JsonProperty or @SerializedName where a key isn't a Java name, like first-name or class, or on every field.
(04)FAQ
Yes, 7 days. After that, Oskuvi Classes from JSON needs a licence, bought through JetBrains Marketplace, where the plugin's page shows the price.
No. The annotations are written as text; adding the libraries stays your choice.
Not in this version: a date is a String. Objects whose keys are data rather than field names become classes with those keys as fields.
No. It writes Java classes and records.
JetBrains IDE plugin
Writes a sample JSON for a Java class, with a value of the right kind for every field.
JetBrains IDE plugin
Draws a class diagram of the Java or Kotlin code you select and gives it to you as Mermaid or PlantUML text.
JetBrains IDE plugin
Measures the Java code you select and shows where it has grown hard to follow: per method, per class and per package.
Java is a registered trademark of Oracle and/or its affiliates. Jackson, Gson and Lombok are the names of their projects; this plugin is not affiliated with any of them. JetBrains, IntelliJ IDEA and PyCharm are trademarks of JetBrains s.r.o.
Next step
The team that makes these products also builds web and mobile apps, plugins and integrations for clients. Tell us what you need, and we'll come back with practical next steps and an honest estimate.