Json To Python Class MCP tool
findutils:json_to_python_class Generate Python class source code from a JSON object as a dataclass, a Pydantic model, or a plain class. Nested objects become separate classes, field names become snake_case, and type hints are optional.
Arguments
application/json-
json
string required
JSON object to convert (the root must be an object).
-
class_name
string optional
Name of the root class. Default: "Root". Default
"Root". -
class_type
string optional
Class style: "dataclass", "pydantic", or "plain". Default: "dataclass". One of
dataclass · pydantic · plain. Default"dataclass". -
add_type_hints
boolean optional
Add type hints (str, int, List[...], Optional[Any]). Default: true. Default
true. -
generate_init
boolean optional
For class_type "plain": generate an __init__ method. Default: true. Default
true.
Example arguments
Verified{
"json": {
"userId": 1,
"firstName": "A",
"tags": [
"x"
]
}
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples)…
- 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…
- Bookmarks Json To Html Convert a bookmarks JSON file into a Netscape bookmarks.html that Chrome, Firefox, Edge and Safari import.
- Csv Dedupe Remove duplicate rows from a CSV or TSV table.
- Csv Diff Compare two CSV or TSV tables by key column and list the rows that were added, removed or changed - a table diff, not a line diff, so rows…
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.