{"ok":true,"result":{"slug":"json-to-python","name":"JSON to Python","summary":"Generate Python classes (dataclasses, Pydantic v2 models or TypedDicts) with type hints from a sample JSON document. Keys become snake_case fields, with aliases where needed.","description":"Generate Python dataclasses, Pydantic v2 models or TypedDicts from JSON, with snake_case fields, aliases for renamed keys, Optional types and nested classes.","method":"POST","endpoint":"/api/v1/tools/json-to-python","plan":"free","mcpName":"json_to_python","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 class; must be a valid Python identifier.","default":"Root","maxLength":100},"style":{"type":"string","description":"Output style.","default":"dataclass","enum":["dataclass","pydantic","typeddict"],"maxLength":200000}},"required":["input"]},"example":{"input":"{\"userId\":42,\"name\":\"Ada\",\"isActive\":true,\"tags\":[\"admin\"]}","rootName":"User","style":"pydantic"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-to-python","page":"https://pithlab.com/tools/json-to-python"}}