BSON_JSON_READER_NEW_FROM_FILE(3)
π BSON_JSON_READER_NEW_FROM_FILE π
ok so bestie, welcome to BSON_JSON_READER_NEW_FROM_FILE(3) β that's the libbson manual, section 3, and this page is literally all about one tiny little function that opens a file and hands you a reader. iconic behavior, no cap. π
β¨ SYNOPSIS β¨
bson_json_reader_t *
bson_json_reader_new_from_file (const char *filename, bson_error_t *error);
yeah that's the whole thing. two args, returns a pointer. slay. π¦
πΈ PARAMETERS πΈ
filenameβ a file name, and it's gotta be in the system file-name encoding, okay? like, the encoding your OS actually uses for paths. don't come at it with something weird. πerrorβ abson_error_t. this is where the drama gets reported if things go sideways. π
π DESCRIPTION π
Creates a new bson_json_reader_t using the underlying file found at filename.
that's it, that's the whole vibe. it's giving "open file, make reader". main character energy fr fr. π
π₯ ERRORS π₯
Errors are propagated via error. so like, if something goes wrong, it's not gonna ghost you β it tells you through that bson_error_t you passed in. π«Ά
β RETURNS β
A newly allocated bson_json_reader_t if successful β cute, fresh, yours to keep (and to free, iykyk). otherwise NULL, and error is set. so like, always check, bestie, please. π
π AUTHOR π
MongoDB, Inc β the icons themselves. π
π§ COPYRIGHT π§
2009-present, MongoDB, Inc.
ok that's the page!! go forth and read some JSON, you absolute legend πβ¨
libbson version 2.5.6, dated Oct 09, 2026 β mwah, catch you in the next manpage, bestie π
π¦π
π¦ 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