carta
bson_json_opts_new(3)

bson_json_opts_new3

Parameters

•

mode: A bson_json_mode_t.

•

max_len: An int32_t.

Overview

The bson_json_opts_new() function shall create a new bson_json_opts_t using the mode and length supplied. The mode member is a bson_json_mode_t defining the encoding mode.

The max_len member holds a maximum length for the resulting JSON string. Encoding will stop once the serialised string has reached this length. To encode the full BSON document, BSON_MAX_LEN_UNLIMITED can be used.

Returns

A newly allocated bson_json_opts_t.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.