#include <jsoncons_ext/bson/bson_options.hpp>
class bson_options;
Specifies options for reading and writing CBOR.
bson_options()
Constructs a bson_options
with default values.
void max_nesting_depth(int depth)
The maximum nesting depth allowed when decoding and encoding BSON. Default is 1024. Parsing can have an arbitrarily large depth limited only by available memory. Serializing a basic_json to BSON is limited by stack size.