{"ok":true,"result":{"slug":"json-to-go","name":"JSON to Go","summary":"Generate Go struct types with json tags from a sample JSON document. Integers and floats are kept apart; arrays of objects are merged into one struct.","description":"Generate Go structs with json tags from a JSON sample. Go style names like ID and URL, int64 or float64 numbers, omitempty, pointers and inline or named nested structs.","method":"POST","endpoint":"/api/v1/tools/json-to-go","plan":"free","mcpName":"json_to_go","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"A sample JSON document (object or array).","maxLength":200000},"rootName":{"type":"string","description":"Name of the top-level struct.","default":"Root","maxLength":100},"omitEmpty":{"type":"string","description":"Which fields get ,omitempty: none, optional (fields missing from some samples) or all.","default":"none","enum":["none","optional","all"],"maxLength":200000},"inline":{"type":"boolean","description":"Nest object types as anonymous structs instead of separate named types.","default":false},"pointers":{"type":"boolean","description":"Use pointer types (*T) for values that are null in the sample.","default":false},"anyType":{"type":"string","description":"Spelling of the empty interface for unknown or mixed values.","default":"any","enum":["any","interface{}"],"maxLength":200000}},"required":["input"]},"example":{"input":"{\"id\":42,\"name\":\"Ada\",\"score\":9.5,\"tags\":[\"admin\"],\"address\":{\"city\":\"London\"}}","rootName":"User"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-to-go","page":"https://pithlab.com/tools/json-to-go"}}