Skip to main content

obj

Macro obj 

Source
macro_rules! obj {
    () => { ... };
    ($($k:expr => $v:expr),+ $(,)?) => { ... };
}
Expand description

Builds a JSON object in the order its keys are written, as a JavaScript object literal is: obj! { "ok" => true, "count" => 3 }.