$ cat input.json | json2record

JSON to Java Record

Paste any JSON and get clean Java records back — nested objects included. Everything runs in your browser and the source code is open.

input.json
$ cat input.json | json2record --name > Root.java
Root.java
// your Java records will appear here