Generate Java POJO class source code from a JSON object. Nested objects become separate classes, arrays become List<T>, and you can choose Lombok @Data, getters/setters, or public fields.
This page documents the HTTP endpoint POST /api/tools/json-to-java-class/execute. See the MCP reference →
Call it over REST
POST https://api.findutils.com/api/tools/json-to-java-class/execute · no API keys · 60 requests/min per IP
Execute — verified arguments
curl -X POST https://api.findutils.com/api/tools/json-to-java-class/execute \
-H "Content-Type: application/json" \
-d '{
"json": "{\"id\":1,\"name\":\"John\",\"skills\":[\"Java\"],\"address\":{\"city\":\"NY\"}}"
}' Parameter schema for this endpoint
curl https://api.findutils.com/api/tools/json-to-java-class Input schema
| Argument | Type | Required | Description |
|---|---|---|---|
| json | string | yes | JSON object to convert (the root must be an object). |
| class_name | string | no | Name of the root class. Default: "Root". Default: "Root". |
| package_name | string | no | Java package name, e.g. "com.example". Empty string omits the package line. Default: "com.example". Default: "com.example". |
| use_lombok | boolean | no | Add the Lombok @Data annotation and import instead of explicit getters/setters. Default: false. Default: false. |
| generate_getters_setters | boolean | no | Generate getters and setters (ignored when use_lombok or use_public_fields is true). Default: true. Default: true. |
| use_public_fields | boolean | no | Declare fields as public instead of private. Default: false. Default: false. |
Example arguments (verified)
{
"json": {
"id": 1,
"name": "John",
"skills": [
"Java"
],
"address": {
"city": "NY"
}
}
} Arguments that carry JSON as a string are shown decoded for readability. The Copy button copies the exact wire arguments.
Also an MCP tool
Claude, Cursor, and any MCP client can call this tool as
findutils:json_to_java_class after one connect command.
Connect once
claude mcp add findutils --transport http https://mcp.findutils.com/ More Data tools
Api Docs Generator
Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples) or as an OpenAP
Bookmarks Html To Csv
Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format int
Csv To Bookmarks Html
Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.
Csv To Json
Parse CSV text into an array of objects keyed by the header row.
Csv To Sql
Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE.
Graphql To Typescript
Convert a GraphQL SDL schema into TypeScript type definitions and return the generated code with counts of emitted types, enums, and inputs.
Html Table To Json
Convert an HTML <table> into JSON — an array of objects keyed by the header row, or an array of row arrays.
Jq Playground
Returns the result of running a jq-style filter over a JSON document.