Scroll to navigation

BSON_JSON_DATA_READER_NEW(3) Library Functions Manual BSON_JSON_DATA_READER_NEW(3)

NAME

bson_json_data_reader_new() - Creates a new streaming JSON reader that will convert JSON documents to BSON.

SYNOPSIS


bson_json_reader_t * bson_json_data_reader_new (bool allow_multiple, size_t size);

PARAMETERS

allow_multiple
A boolean denoting if more than one document may be allowed in the stream.
size
A requested buffer size.

DESCRIPTION

Creates a new streaming JSON reader that will convert JSON documents to BSON.

RETURNS

A newly allocated bson_json_reader_t that should be freed with bson_json_reader_destroy().

COLOPHON

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
2016‐10‐12 libbson