json

Macro json 

Source
json!() { /* proc-macro */ }
Expand description

Create a JSON object. Expressions are allowed as values as long as the result is convertible to a Value. Example:

let number = 3.14;
let value = json!(
    {
        "number" : number
    }
);