Home
Watchdroid
Mail Blackhole
JSON Formatter
JSON Viewer
JSON Compare
JSON Repair
JSON Escape & Unescape
JSONPath Tester
JSON Converter
JSON to JSON Schema
JSON to Code
JSON to TypeScript
JSON to Zod Schema
JSON Schema to Code
JSON Flatten & Unflatten
OpenAPI & Swagger Validator
blackdroid.dev

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.