[#ParseVerbosity]
= ParseVerbosity
:mrdocs:

Parses verbosity from provided UniValue&period;

== Synopsis

Declared in `&lt;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ParseVerbosity(
    xref:UniValue.adoc[UniValue] const& arg,
    int default&lowbar;verbosity,
    bool allow&lowbar;bool);
----

== Exceptions

[cols="1,4"]
|===
| Name| Thrown on
| xref:JSONRPCError.adoc[`JSONRPCError`]
| if allow&lowbar;bool is false but arg provided is boolean
|===

== Return Value

An integer describing the verbosity level (e&period;g&period; 0, 1, 2, etc&period;)

== Parameters

[cols="1,4"]
|===
| Name| Description
| *arg* [in]
| The verbosity argument as an int (0, 1, 2,&period;&period;&period;) or bool if allow&lowbar;bool is set to true
| *default&lowbar;verbosity* [in]
| The value to return if verbosity argument is null
| *allow&lowbar;bool* [in]
| If true, allows arg to be a bool and parses it
|===


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