get_path()
read_file()
read_lines()
write_file()
append_file()
load_json()
write_json()
clear()
exists()
remove()
ensure_dir_exists()
ensure_file_exists()
Write data to a JSON file.
fname (str) –
data (dict) –
in_module (bool, default=False) –
pretty (bool, default=False) – Whether to pretty-print the JSON by indenting new lines.