to_json# StatisticalGenerator.to_json(filename: str) → None# Dump the full template tree to a JSON file. Only root templates (no parent) can be exported. The resulting file is made read-only after writing.