class_docstr: Hold some config params to control generation and report procedure.
class_docstr_tok: ["Hold","some","config","params","to","control","generation","and","report","procedure","."]
docstr: Serializes this instance to a JSON file.
docstr_tok: ["Serializes","this","instance","to","a","JSON","file","."]
code: def to_json_file(self, json_file):
      r"""
      Serializes this instance to a JSON file.
  
      """
      with open(json_file, "w+", encoding="utf-8") as writer:
          json.dump(
              self.to_dict(), writer, indent=2, ensure_ascii=False
          )
  
file_path: textflint/textflint/input/config/config.py
imports: import os
  import six
  import json
  import copy
  from ...common.utils.logger import logger
  from ...common.settings import NLP_TASK_MAP, ALLOWED_TRANSFORMATIONS, TRANSFORM_FIELDS, ALLOWED_SUBPOPULATIONS, ALLOWED_VALIDATORS, ALLOWED_cn_TRANSFORMATIONS
label_desc: Use image node_id 8 for calling the Config obj's underlying member method code with example usage: obj.to_json_file(json_file) without return types