JSON to Java
Generate Java POJO classes from JSON data.
Runs entirely in your browser.
Convert JSON to Java Tool
About JSON
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
Learn more: JSON Tutorial
About Java POJOs
A POJO (Plain Old Java Object) is a simple class with private fields and public getters and setters. POJOs are the standard way to map JSON onto Java objects with libraries like Jackson and Gson, which match JSON keys to fields by name.
This tool infers Java types from your sample: strings become String, whole numbers int, decimals double, booleans boolean, arrays List<X>, and nested objects become their own class. Mixed or unknown types fall back to Object. The optional Lombok mode replaces the generated getters and setters with the @Data annotation, which generates them at compile time.
Learn more: Java Tutorial