It provides serde wrapper to load/save serializable data from relative paths.
It allows to write file paths instead of data during serialization. Suppose we have the following JSON files to be loaded.
main.json
json
{
"sub": "sub/sub.json"
}
sub/sub.json
json
{
"sub": "sub/sub.json"
}
sub/sub/sub_of_sub.json
json
{
"sub": "sub/sub_of_sub.json"
}
This crate provides the JsonPath
wrapper load JSON files recursively.
```rust use serde_loader::JsonPath; use serde::{Serialize, Deserialize};
struct Main { pub sub: JsonPath }
struct Sub {
pub sub: JsonPath
struct SubOfSub { pub name: String, pub value: String, }
let config: JsonPath
MIT license. See the license file.