Crate json_io [] [src]

Functions for simplifying the process of serializing types to JSON files.

Enums

Error

Represents the different kinds of errors returned by Librar.

Functions

load

Construct a Decodable type from a JSON file at the given path. json_io will first try and open the file with the path exactly as given. If the file isn't found, it will set the extension to .json and try again.

save

Save an Encodable type to a JSON file at the given path. The file will be saved with the ".json" extension whether or not it was given with the Path.