Python DTO → JSON

Indent
JSON output

Free Online Python DTO to JSON Converter

Convert typed Python class fields, dataclasses, or Pydantic-style models into a sample JSON object using type hints and defaults.