DOKK / manpages / debian 13 / libbson-doc / bson_json_mode_t.3.en
BSON_JSON_MODE_T(3) libbson BSON_JSON_MODE_T(3)

BSON JSON encoding mode enumeration

#include <bson/bson.h>
typedef enum {

BSON_JSON_MODE_LEGACY,
BSON_JSON_MODE_CANONICAL,
BSON_JSON_MODE_RELAXED, } bson_json_mode_t;


The bson_json_mode_t enumeration contains all available modes for encoding BSON into MongoDB Extended JSON.

SEE ALSO:

bson_as_json_with_opts()



MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4