pyufunc.save_dict_to_json#

pyufunc.save_dict_to_json(filename, data, *, output_dir='.')#

Save a dictionary to a JSON file with pretty formatting.

Parameters:
  • filename (str) – The name of the output JSON file.

  • data (Dict) – The dictionary to save.

  • output_dir (str) – The directory where the JSON file will be saved.

Note

Example

>>> save_dict_to_json("usage", {"repo": ["func"]}, output_dir=".")
Returns:

This function does not return a value.

Return type:

None