to_json.py


save function

None

save source
def save(markata: "Markata") -> None:
    output_file = Path(markata.config["output_dir"]) / "markata.json"
    output_file.parent.mkdir(parents=True, exist_ok=True)
    output_file.write_text(json.dumps(markata.to_dict(), default=str))