1BSON_JSON_OPTS_T(3) libbson BSON_JSON_OPTS_T(3)
2
3
4
5BSON to JSON encoding options
6
8 #include <bson/bson.h>
9
10 typedef struct _bson_json_opts_t bson_json_opts_t;
11
12 bson_json_opts_t *
13 bson_json_opts_new (bson_json_mode_t mode, int32_t max_len);
14
15 void
16 bson_json_opts_destroy (bson_json_opts_t *opts);
17
19 The bson_json_opts_t structure contains options for encoding BSON into
20 MongoDB Extended JSON.
21
22 The mode member is a bson_json_mode_t defining the encoding mode.
23
24 The max_len member holds a maximum length for the resulting JSON
25 string. Encoding will stop once the serialised string has reached this
26 length. To encode the full BSON document, BSON_MAX_LEN_UNLIMITED can be
27 used.
28
29 SEE ALSO:
30 bson_as_json_with_opts()
31
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.25.1 Nov 08, 2023 BSON_JSON_OPTS_T(3)