JsonFile¶
-
class
cgp_generic_utils.files.JsonFile(path)¶ Bases:
cgp_generic_utils.files.Filefile object that manipulate a
.jsonfile on the file system-
classmethod
create(path, content=None, **__)¶ create a json file
Parameters: - path (str) – path of the json file
- content (any) – content of the json file
Returns: the created json file
Return type:
-
read()¶ read the json file
Returns: the content of the json file Return type: any
-
classmethod