1BSON_JSON_OPTS_T(3)                 libbson                BSON_JSON_OPTS_T(3)
2
3
4

NAME

6       bson_json_opts_t - bson_json_opts_t
7
8       BSON to JSON encoding options
9

SYNOPSIS

11          #include <bson/bson.h>
12
13          typedef struct _bson_json_opts_t bson_json_opts_t;
14
15          bson_json_opts_t *
16          bson_json_opts_new (bson_json_mode_t mode, int32_t max_len);
17
18          void
19          bson_json_opts_destroy (bson_json_opts_t *opts);
20

DESCRIPTION

22       The  bson_json_opts_t structure contains options for encoding BSON into
23       MongoDB Extended JSON.
24
25       The mode member is a bson_json_mode_t defining the encoding mode.
26
27       The max_len member holds  a  maximum  length  for  the  resulting  JSON
28       string.  Encoding will stop once the serialised string has reached this
29       length. To encode the full BSON document, BSON_MAX_LEN_UNLIMITED can be
30       used.
31
32       SEE ALSO:
33          bson_as_json_with_opts()
34
35

AUTHOR

37       MongoDB, Inc
38
40       2017-present, MongoDB, Inc
41
42
43
44
451.20.0                           Nov 18, 2021              BSON_JSON_OPTS_T(3)
Impressum