Schema-to-Java Generator
Generate SJF4J-ready Java models from JSON Schema, entirely in your browser.
Advanced options
Generated sources target Java 8+. Lombok and validation annotations require their corresponding dependencies.
Schema Libraries (0)
Add explicitly supplied JSON Schema documents with a unique $id to resolve external references. No network requests are made.
Property type overrides (10 inline properties)
Override Java types only when needed. Other fields use the automatic schema mapping. Nested and referenced models are still generated separately.
idstringamountnumbercreatedAtstringcustomerobjectcustomer.emailstringcustomer.activebooleanitemsarrayitems[*].skustringitems[*].quantityintegerstatusstringJSON Schema
Java Source
package org.example.generated;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.List;
/**
* An example checkout order.
*/
public class Order {
/**
* Order identifier.
*/
public String id;
public BigDecimal amount;
public OffsetDateTime createdAt;
public Customer customer;
public List<OrderItem> items;
public Status status;
}
SupportedObjects, arrays, scalar types, string enums, local and supplied external
$ref, and compatible object allOf.LimitationsJava classes describe the data model; they do not enforce full JSON Schema validation. oneOf, anyOf, and dynamic references are not modeled.DocumentationModeling (OBNT) · Validating · Installation