bson_new - Man Page
Synopsis
bson_t * bson_new (void);
Description
The bson_new() <> function shall create a new bson_t <> structure on the heap. It should be freed with bson_destroy() <> when it is no longer in use.
Returns
A newly allocated bson_t <> that should be freed with bson_destroy() <>.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
Info
Feb 04, 2026 1.30.7 libbson