write_json

write_json(data: Any, path: str | Path | TextIO, *, encoding: str | None = None, newline: str | None = None, ensure_ascii: bool = False, indent: int | None = None, trailing_newline: bool = True, **kwargs: Any) Any[source]

Write JSON to a file.