[#RPCTypeCheckObj]
= RPCTypeCheckObj
:mrdocs:

Check that an object contains the expected keys with the expected value types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
RPCTypeCheckObj(
    xref:UniValue.adoc[UniValue] const& o,
    std::map&lt;std::string, UniValueType&gt; const& typesExpected,
    bool fAllowNull = false,
    bool fStrict = false);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *o*
| The object to check&period;
| *typesExpected*
| Map of key names to their expected value types&period;
| *fAllowNull*
| If true, allow null values for the expected keys&period;
| *fStrict*
| If true, reject keys that are not in `typesExpected`&period;
|===


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