Skip to main content

json

Macro json 

Source
macro_rules! json {
    ($($json:tt)+) => { ... };
}
Expand description

Macro for creating Json objects with a more ergonomic syntax.

§Example

use ankurah_core::json;

let licensing = json!({
    "territory": "US",
    "rights": {
        "holder": "Label",
        "type": "exclusive"
    }
});