[#common-SettingsValue] = xref:common.adoc[common]::SettingsValue :relfileprefix: ../ :mrdocs: Settings value type (string/integer/boolean/null variant). == Synopsis Declared in `<common/settings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using SettingsValue = xref:UniValue.adoc[UniValue]; ---- == Description [NOTE] ==== UniValue is used here for convenience and because it can be easily serialized in a readable format. But any other variant type that can be assigned strings, int64_t, and bool values and has get_str(), getInt<int64_t>(), get_bool(), isNum(), isBool(), isFalse(), isTrue() and isNull() methods can be substituted if there's a need to move away from UniValue. (An implementation with boost::variant was posted at https://github.com/bitcoin/bitcoin/pull/15934/files#r337691812) ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#