DOKK / manpages / debian 13 / libbson-doc / bson_json_reader_new_from_file.3.en
BSON_JSON_READER_NEW_FROM_FILE(3) libbson BSON_JSON_READER_NEW_FROM_FILE(3)

bson_json_reader_t *
bson_json_reader_new_from_file (const char *filename, bson_error_t *error);


  • filename: A file-name in the system file-name encoding.
  • error: A bson_error_t.

Creates a new bson_json_reader_t using the underlying file found at filename.

Errors are propagated via error.

A newly allocated bson_json_reader_t if successful, otherwise NULL and error is set.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4