Convert a JSON array to a banmap_t object.
Synopsis
Declared in <net_types.h>
void
BanMapFromJson(
UniValue const& bans_json,
banmap_t& bans);
Exceptions
Name |
Thrown on |
|
if the JSON does not have the expected fields or they contain unparsable values. |
Parameters
Name |
Description |
bans_json [in] |
JSON to convert, must be as returned by |
bans [out] |
Bans list to create from the JSON. |
Created with MrDocs