absfuyu.util.json_method module

Absfuyu: Json Method

.json file handling

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

class absfuyu.util.json_method.JsonFile(json_file_location: str | Path, *, encoding: str | None = 'utf-8', indent: int | str | None = 4, sort_keys: bool = True)[source]

Bases: BaseClass

.json file handling

load_json() dict[Any, Any][source]

Load .json file

Returns:

.json data

Return type:

dict

save_json() None[source]

Save .json file

update_data(data: dict[Any, Any]) None[source]

Update .json data without save

Parameters:

data (dict) – .json data