- true if dropped null placeholders are allowed. (See StreamWriterBuilder.)
- "allowNumericKeys": false or true
- true if numeric object keys are allowed.
+ - "stackLimit": integer
+ - This is a security issue (seg-faults caused by deeply nested JSON),
+ so the default is low.
You can examine 'settings_` yourself
to see the defaults. You can also write and read them just like any
valid_keys->insert("strictRoot");
valid_keys->insert("allowDroppedNullPlaceholders");
valid_keys->insert("allowNumericKeys");
+ valid_keys->insert("stackLimit");
}
bool CharReaderBuilder::validate(Json::Value* invalid) const
{
(*settings)["strictRoot"] = false;
(*settings)["allowDroppedNullPlaceholders"] = false;
(*settings)["allowNumericKeys"] = false;
+ (*settings)["stackLimit"] = 1000;
//! [CharReaderBuilderDefaults]
}