code: def dump(dct, jfile, overwrite=False, dirlevel=0, sort_keys=True,
           indent=2, default_name='root.json', **kwargs):
      
      to_json(dct, jfile, overwrite=overwrite, dirlevel=dirlevel,
              sort_keys=sort_keys, indent=indent,
              default_name=default_name, **kwargs)
docs: output dict to json
  
      Parameters
      ----------
      dct : dict
      jfile : str or file_like
          if file_like, must have write method
      overwrite : bool
          whether to overwrite existing files
      dirlevel : int
          if jfile is path to folder,
          defines how many key levels to set as sub-folders
      sort_keys : bool
          if true then the output of dictionaries will be sorted by key
      indent : int
          if non-negative integer, then JSON array elements and object members
          will be pretty-printed on new lines with that indent level spacing.
      kwargs : dict
          keywords for json.dump