Macro json::array [] [src]

macro_rules! array {
    ($dec:ident, $e:expr) => { ... };
    ($e:expr) => { ... };
}

Macro to support declarative decoding into Vec.

This only supports homogenous JSON arrays. To decode arrays with different element types use Decoder::array.

Syntax

array!(decoder_var_name ',' expression) /
array!(expression)

Two variants are supported, one with an explicit decoder variable and the other one without. If not given, a lambda function will be generated which needs to be supplied to a decoder and is best used inside object! macro invications.