bson_json_data_reader_new (3) - Linux Manuals
bson_json_data_reader_new: Creates a new streaming JSON reader that will convert JSON documents to BSON.
Command to display bson_json_data_reader_new
manual in Linux: $ man 3 bson_json_data_reader_new
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.
Pages related to bson_json_data_reader_new
- bson_json_data_reader_ingest (3) - Feed data to a memory based json reader.
- bson_json_reader_destroy (3) - Frees a bson_json_reader_t.
- bson_json_reader_new (3) - Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.
- bson_json_reader_new_from_fd (3) - Creates a new JSON to BSON converter that will be reading from the file-descriptor fd.
- bson_json_reader_new_from_file (3) - Creates a new bson_json_reader_t using the underlying file found at filename.
- bson_json_reader_read (3) - Reads the next BSON document from the underlying JSON source.
- bson_json_reader_t (3) - Bulk JSON to BSON conversion
- bson_append_array (3) - The bson_append_array() function shall append child to bson using the specified key. The type of the field will be an array, but it is the responsibility of the caller to ensure that the keys of child are properly formatted with string keys such as "0", "1", "2" and so forth.
- bson_append_array_begin (3) - The bson_append_array_begin() function shall begin appending an array field to bson. This allows for incrementally building a sub-array. Doing so will generally yield better performance as you will serialize to a single buffer. When done building the sub-array, the caller MUST call bson_append_array_end().