[][src]Macro jws::json_object

macro_rules! json_object {
    {} => { ... };
    { $( $name:tt : $value:expr, )+ } => { ... };
    { $( $name:tt : $value:expr ),+ } => { ... };
}

Create a JSON object.

This is similar to the json macro from serde, except that this macro always creates a JSON object, rather than a JSON value.

Example

json_object!{
  "alg": "HS256",
  "typ": "jwt",
};