parameters: (self, filename)
docstring: Save current config to a json file.
docstring_summary: Save current config to a json file.
docstring_tokens: Save current config to a json file .
function: def write_config(self, filename):
          """
          Save current config to a json file.
          """
          with open(filename, 'w') as output:
              output.write(json.dumps(self.config, indent=4))
function_tokens: def write_config ( self , filename ) : with open ( filename , 'w' ) as output : output . write ( json . dumps ( self . config , indent = 4 ) )