write_pydantic_json
- write_pydantic_json(model: pydantic.BaseModel, path: str | Path | TextIO, *, exclude_none: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, encoding: str | None = None, newline: str | None = None, ensure_ascii: bool = False, indent: int | None = None, trailing_newline: bool = True) None[source]
Write a model to a JSON file.