BSON_JSON_DATA_READER_NEW(3)

πŸ’… BSON_JSON_DATA_READER_NEW ✨

okay bestie so this is a libbson joint β€” that's the manual page BSON_JSON_DATA_READER_NEW(3), and honestly it's a short one but we're gonna make it cute anyway πŸŽ€


✨ SYNOPSIS ✨

bson_json_reader_t *
bson_json_data_reader_new (bool allow_multiple, size_t size);

🌸 PARAMETERS 🌸

  • allow_multiple β€” literally unused, bestie. it's giving decorative. πŸ’€
  • size β€” a requested buffer size, if you will 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this does: it creates a brand new streaming JSON reader ✨ and that reader's whole job is converting JSON documents to BSON. iconic behavior honestly πŸ‘‘

and about *allow_multiple*… yeah. the parameter is unused. no cap. it's just sitting there. main character energy for absolutely no reason πŸ™ˆ everyone keeps passing it anyway iykyk.


πŸ’– RETURNS πŸ’–

you get back a newly allocated bson_json_reader_t 🌈 and listen β€” you gotta free it with bson_json_reader_destroy(). that's not a suggestion, that's a whole vibe check for your memory. don't just leave it hanging 😭

fr fr: new allocation in, bson_json_reader_destroy() out. periodt.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the ones who made it happen πŸ’œ


2009-present, MongoDB, Inc. 🫢


k bye bestie β€” that was libbson version 2.5.6, dated Oct 09, 2026, page BSON_JSON_DATA_READER_NEW(3) πŸ¦‹πŸ’…βœ¨

πŸ“¦ where this page comes from