Macro jws::json_object[][src]

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

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",
};