code: def write_json_to_file(self, net_type, filename, indent='no-indent'):
      '''
      Save dat or viz as a JSON to file.
      '''
      export_data.write_json_to_file(self, net_type, filename, indentf write_json_to_file(self, net_type, filename, indent='no-indent'):
      '''
      Save dat or viz as a JSON to file.
      '''
      export_data.write_json_to_file(self, net_type, filename, indent)
docs: Save dat or viz as a JSON to file.