Dataclass & TypedDictNested Support100% Private
from dataclasses import dataclass
@dataclass
class Root:
id: int
name: str
email: str
active: bool
score: float
address: Address
tags: list[str]
orders: list[OrdersItem]
@dataclass
class OrdersItem:
id: int
total: float
@dataclass
class Address:
street: str
city: strFAQ
What output formats are supported?
Dataclass (with @dataclass decorator) and TypedDict for static type checking.
Are nested objects handled?
Yes. Nested objects generate separate class definitions with proper type references.
Does it use snake_case?
Yes. CamelCase and kebab-case JSON keys are automatically converted to Python snake_case.
Love this tool? Explore 999+ more
Free online tools for images, PDFs, text, code, and more. All running in your browser.
Explore All Tools