code: def write_dicts_to_json(self, data):
          
          with open(self.path, "w") as out:
              json.dump(
                  data,  # data
                  out,  # file handler
                  indent=4, sort_keys=True  # pretty print
              )
docs: Saves .json file with data
  
          :param data: Data