Module io

Source

Functionsยง

read_json_file
Reads the JSON file at the specified path and deserializes it into the provided type. Returns an error if the file cannot be read or deserialization fails.
write_json_file
Writes the given serializable object as JSON to the specified file path using pretty printing. Returns an error if the file cannot be created or if serialization/writing fails.