Skip to content

Files

Latest commit

c2e5a51 · May 24, 2023

History

History
27 lines (17 loc) · 600 Bytes

bson_options.md

File metadata and controls

27 lines (17 loc) · 600 Bytes

jsoncons::bson::bson_options

#include <jsoncons_ext/bson/bson_options.hpp>

class bson_options;

bson_options

Specifies options for reading and writing CBOR.

Constructors

bson_options()

Constructs a bson_options with default values.

Modifiers

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.