robust_json
Provides a robust JSON encoder that can handle various types of objects, including dataclasses, paths, enums, namespaces, and functions.
Classes
Functions
- json_dump(obj, path)
- Parameters:
obj (Any)
path (Path | str)
- Return type:
None
- json_dumps(obj)
- Parameters:
obj (Any)
- Return type:
str
- json_load(path)
- Parameters:
path (Path | str)
- Return type:
dict