POJO & RecordsNested Support100% Private
public class Root {
private int id;
public int getId() { return id; }
public void setId(int id) { this.id = id; }
private String name;
public String getName() { return name; }
public void setName(String name) { this.name = name; }
private String email;
public String getEmail() { return email; }
public void setEmail(String email) { this.email = email; }
private boolean active;
public boolean getActive() { return active; }
public void setActive(boolean active) { this.active = active; }
private double score;
public double getScore() { return score; }
public void setScore(double score) { this.score = score; }
private Address address;
public Address getAddress() { return address; }
public void setAddress(Address address) { this.address = address; }
private List<String> tags;
public List<String> getTags() { return tags; }
public void setTags(List<String> tags) { this.tags = tags; }
}
public class Address {
private String street;
public String getStreet() { return street; }
public void setStreet(String street) { this.street = street; }
private String city;
public String getCity() { return city; }
public void setCity(String city) { this.city = city; }
}FAQ
What output styles are supported?
POJO mode generates traditional classes with private fields, getters, and setters. Record mode generates Java records (Java 16+).
Are nested objects handled?
Yes. Each nested JSON object generates a separate class/record definition with proper type references.
What types are inferred?
String, int, double, boolean, List<T>, and nested Object types are automatically inferred from JSON values.
Love this tool? Explore 999+ more
Free online tools for images, PDFs, text, code, and more. All running in your browser.
Explore All Tools