[#BanMapToJson]
= BanMapToJson
:mrdocs:

Convert a `banmap&lowbar;t` object to a JSON array&period;

== Synopsis

Declared in `&lt;net&lowbar;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
BanMapToJson(xref:banmap_t.adoc[banmap&lowbar;t] const& bans);
----

== Return Value

a JSON array, similar to the one returned by the `listbanned` RPC&period; Suitable for passing to `BanMapFromJson()`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bans* [in]
| Bans list to convert&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
