Use Rust's JSON more easily like python's dict and javascript JSON. includes set, append, get, delete, and more
How this works?
I made a series of custom macro's for Rust's Serde JSON crate. This will make it easier to work with JSON if you are familiar with Python or JavaScript.
Now added support for Saving and Loading <3
Let's take a look how this works.
consider the following:
set!, append!,delete!, get!, and root_append! are macros avalible to use.
Drill down to a specifc key-value entery like level1.level2.level3b for easy usage.
Now supporting pseudo database like functionality with load! and save!.
Example Usage
in a new rust project,
enter commands cargo add serde_json and cargo add json_easy2use
add the following to your main.rs file:
the output from this code is the following:
and test.db created in the current directory.