BSON_JSON_MODE_T(3)
π BSON_JSON_MODE_T(3) π
ok so this is a page from the libbson manual, and honestly? it's a short one, bestie. we're talking about the BSON JSON encoding mode enumeration β¨ β yes that's the whole name line, slay.
β¨ SYNOPSIS β¨
like, here's the literal vibe:
#include <bson/bson.h>
typedef enum {
BSON_JSON_MODE_LEGACY,
BSON_JSON_MODE_CANONICAL,
BSON_JSON_MODE_RELAXED,
} bson_json_mode_t;
copy it exactly bestie, no typos, we don't do that here π
π¦ DESCRIPTION π¦
okay so bson_json_mode_t is this enum and it's literally a little menu of modes π β it contains all the available modes for encoding BSON into MongoDB Extended JSON. that's it. that's the whole job. main character energy, no notes π
and the three options on the menu are, in order:
BSON_JSON_MODE_LEGACYβ the legacy one πΈBSON_JSON_MODE_CANONICALβ the canonical one πBSON_JSON_MODE_RELAXEDβ the relaxed one π§
(that's the entire enum, she's short and iconic, periodt β¨)
SEE ALSO: π₯ bson_as_json_with_opts() β go read that one next, iykyk π«Ά
π AUTHOR π
MongoDB, Inc β yes, the whole company. iconic of them honestly π
π COPYRIGHT π
2009-present, MongoDB, Inc. β like, a long time. respect π
and that's the tea, bestie π¦ this masterpiece is from libbson version 2.5.6, dated Oct 09, 2026 β go forth and encode responsibly, mwah πβ¨π
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms