[#CBanEntry-ToJson]
= xref:CBanEntry.adoc[CBanEntry]::ToJson
:relfileprefix: ../
:mrdocs:

Generate a JSON representation of this ban entry&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
ToJson() const;
----

== Return Value

JSON suitable for passing to the `CBanEntry(const UniValue&amp;)` constructor&period;


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