JSON to Java Class
Convert JSON data to Java POJO classes using quicktype engine. Supports Lombok annotations, Jackson conversion code, array types, and more.
Usage
Features
Based on quicktype engine, this tool converts JSON data to Java POJO classes with Lombok, Jackson, and other options.
Steps
Enter or paste JSON data in the left text box, set the root class name, package name, and generation options. Java code will be generated in real time.
Options
- Package name: The package declaration in generated code, defaults to com.example.
- Root class name: The root type name to generate, defaults to Root.
- Array type: Controls the Java type of array fields (List or ArrayList).
- Lombok: When checked, uses Lombok annotations (@Data, @Builder, etc.) to simplify code.
- Jackson: When checked, generates Jackson conversion methods.
Notes
Jackson framework requires jackson-databind dependency. Lombok requires lombok dependency.