Json To Go Struct

Data REST API MCP

Returns Go struct definitions (as source text) generated from a JSON object. Field names become PascalCase, nested objects become their own structs (or inline structs), and json tags with optional omitempty are added.

This page documents the HTTP endpoint POST /api/tools/json-to-go-struct/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/json-to-go-struct/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/json-to-go-struct/execute \
  -H "Content-Type: application/json" \
  -d '{
    "json": "{\"user_name\":\"a\",\"age\":3,\"address\":{\"city\":\"x\"}}"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/json-to-go-struct

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
json string yes A JSON object (text). The top-level value must be an object.
struct_name string no Name of the top-level struct. Default: "Root". Default: "Root".
add_json_tags boolean no Add `json:"..."` struct tags. Default: true. Default: true.
omit_empty boolean no Append ",omitempty" to every json tag. Default: false. Default: false.
inline_structs boolean no Emit nested objects as inline anonymous structs instead of named types. Default: false. Default: false.

Example arguments (verified)

{
  "json": {
    "user_name": "a",
    "age": 3,
    "address": {
      "city": "x"
    }
  }
}

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_go_struct after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Json To Go Struct →

More Data tools