JSON to Code Generator

Infer a typed data model from a JSON sample — Python, Rust, C#, Java, Go, or GraphQL.

Entradas

Resultados

from dataclasses import dataclass
from typing import List, Optional

@dataclass
class Address:
    city: str
    zip: str

@dataclass
class Model:
    id: int
    name: str
    active: bool
    score: float
    tags: List[str]
    address: Address
    nickname: Optional[str]

Acerca de esta herramienta

Pega un objeto JSON y obtén un modelo tipado inferido de sus valores en Python, Rust, C#, Java, Go o GraphQL: cada campo se vuelve un tipo nombrado, determinístico.

Herramientas relacionadas