dgs.utils.files.write_json

dgs.utils.files.write_json(obj: dict, filepath: str)[source]

Writes to a json file.

Parameters:
  • obj – the dict or JSON to be written.

  • filepath – The absolute path to the .json file that should be created.