DOKK / manpages / debian 10 / libbson-doc / bson_json_reader_read.3.en
BSON_JSON_READER_READ(3) Libbson BSON_JSON_READER_READ(3)

bson_json_reader_read - bson_json_reader_read()

int
bson_json_reader_read (bson_json_reader_t *reader,

bson_t *bson,
bson_error_t *error);


  • reader: A bson_json_reader_t.
  • bson: A bson_t.
  • error: A bson_error_t.

Reads the next BSON document from the underlying JSON source.

Errors are propagated via the error parameter.

1 if successful and data was read. 0 if successful and no data was read. -1 if there was an error.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0