forge_util introduction
Intro
forge_util
implement by Rust
. Provide apis to save a Json in local.
Help user
APIs
/// save Json to local
/// value: Json to save.
/// path: local path where to save, `empty` will save to default path `./settings.json`
config_save_settings
/// get Json from local
/// path: Json file local path, `empty` will use default path `./settings.json`
config_get_settings
Example
let people = json!;
let path = "./config_test.json";
config_save_settings?;
assert_eq!;
Example above will create a Json file ./config_test.json
:
./config_test.json
: