[#BanMapFromJson] = BanMapFromJson :mrdocs: Convert a JSON array to a `banmap_t` object. == Synopsis Declared in `<net_types.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void BanMapFromJson( xref:UniValue.adoc[UniValue] const& bans_json, xref:banmap_t.adoc[banmap_t]& bans); ---- == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if the JSON does not have the expected fields or they contain unparsable values. |=== == Parameters [cols="1,4"] |=== | Name| Description | *bans_json* [in] | JSON to convert, must be as returned by `BanMapToJson()`. | *bans* [out] | Bans list to create from the JSON. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#