1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
### jsoncons::msgpack::msgpack_options
```cpp
#include <jsoncons_ext/msgpack/msgpack_options.hpp>
class msgpack_options;
```
<br>

Specifies options for reading and writing CBOR.
#### Constructors
msgpack_options()
Constructs a `msgpack_options` with default values.
#### Modifiers
void max_nesting_depth(int depth)
The maximum nesting depth allowed when decoding and encoding MessagePack.
Default is 1024. Parsing can have an arbitrarily large depth
limited only by available memory. Serializing a [basic_json](../basic_json.md) to
MessagePack is limited by stack size.
|