Model REST responses
Create a starting set of Java records for an external or internal API.
Generate tool
Generate Java records from sample JSON in your browser, including nested objects and list types.
Your input and result are not sent to JSON Hearth or stored on a server.
When to use it
Java generation turns representative JSON into a readable group of records that can be adapted for deserialization and application models.
Create a starting set of Java records for an external or internal API.
Translate JSON examples into typed structures for unit and integration tests.
Make relationships between objects and lists visible in Java source form.
How it works
Paste a value, open a local file or begin with the working sample.
The transformation executes in your browser, not on our servers.
Check the output, then copy or download it for your next task.
Important limitations
Generated records may need annotations, package declarations and framework-specific configuration.
Nullability, polymorphism and precise numeric types cannot always be inferred from a sample.
Common questions
No. Your input is processed by code running in your browser and is not sent to an application server.
Yes. The tool is free, requires no account and can be used directly in the browser.
It generates Java records as a concise starting representation of the sample data.
Library conventions differ. Add annotations or naming configuration required by Jackson, Gson or your chosen framework.