Convert a JSON array to a banmap_t object.
| Name | Thrown on |
|---|---|
std::runtime_error | if the JSON does not have the expected fields or they contain unparsable values. |
| Name | Description |
|---|---|
| bans_json [in] | JSON to convert, must be as returned by BanMapToJson(). |
| bans [out] | Bans list to create from the JSON. |