mamut_routing_lib.json_utils¶
CustomJsonEncoder
¶
custom_json_encode
¶
Source code in MAMUT-routing-lib/src/mamut_routing_lib/json_utils.py
get_custom_json_string
¶
strict_json_loads
¶
strict_json_loads(
data: str | bytes,
*,
parse_float: Callable[[str], Any] = float,
parse_int: Callable[[str], Any] = int,
) -> Any
Parse JSON without silently selecting one of two identically named members.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/json_utils.py
load_json_from_file
¶
save_json_to_file
¶
save_json_to_file(
obj: Any,
filepath: str | Path,
indent: int = 4,
sort_keys: bool = False,
) -> None