logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

#include <bson/bson.h>

Author

       MongoDB, Inc

Description

       The bson_json_opts_t structure contains options for encoding BSON into MongoDBExtendedJSON.

       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.

       SEEALSO:bson_as_json_with_opts()

Synopsis

          #include <bson/bson.h>

          typedef struct _bson_json_opts_t bson_json_opts_t;

          bson_json_opts_t *
          bson_json_opts_new (bson_json_mode_t mode, int32_t max_len);

          void
          bson_json_opts_destroy (bson_json_opts_t *opts);

See Also