JSON to Java
Convert JSON to Java online for free — generate records or POJO classes from JSON with nested types. Private, in-browser.
Java (record) output
// Generated by blackdroid.dev
import java.util.List;
public record Root(
long id,
String name,
String email,
boolean active,
double balance,
Address address,
List<String> roles
) {}
public record Address(
String street,
String city,
String zip
) {}About JSON to Java
Paste JSON and get Java types instantly — records for modern Java or classic POJO classes with getters, both with nested objects mapped to their own types and arrays to lists.
Handy for modeling REST API responses in Spring or Jackson/Gson projects. Generation runs entirely in your browser — your payload is never uploaded.