JSON to Java Class Converter

Paste a JSON payload and get Java records for Jackson or Spring Boot. Nested objects become their own records, and @JsonProperty handles keys that are Java keywords.

Example

Input
{
  "name": "parsebox",
  "version": "2.1.0",
  "private": false,
  "maintainers": [
    { "name": "Ada Lovelace", "email": "[email protected]", "active": true },
    { "name": "Alan Turing", "email": "[email protected]", "active": false }
  ],
  "build": {
    "target": "es2022",
    "minify": true,
    "port": 5173
  }
}
Output
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

public record Root(
    String name,
    String version,
    @JsonProperty("private") boolean private_,
    List<Maintainer> maintainers,
    Build build
) {}

record Maintainer(
    String name,
    String email,
    boolean active
) {}

record Build(
    String target,
    boolean minify,
    int port
) {}

Private by design

ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.

Related conversions

All 30 formats in ParseBox →