Check that an object contains the expected keys with the expected value types.
Synopsis
Declared in <rpc/util.h>
void
RPCTypeCheckObj(
UniValue const& o,
std::map<std::string, UniValueType> const& typesExpected,
bool fAllowNull = false,
bool fStrict = false);
Parameters
Name |
Description |
o |
The object to check. |
typesExpected |
Map of key names to their expected value types. |
fAllowNull |
If true, allow null values for the expected keys. |
fStrict |
If true, reject keys that are not in |
Created with MrDocs