---
name: "bson_json_data_reader_new"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_json_data_reader_new"
---

# bson\_json\_data\_reader\_new(3)

## SYNOPSIS

```
bson_json_reader_t *
bson_json_data_reader_new (bool allow_multiple, size_t size);
```

## PARAMETERS

- •

  **allow\_multiple**: Unused.

- •

  **size**: A requested buffer size.

## DESCRIPTION

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

The **allow\_multiple** parameter is unused.

## RETURNS

A newly allocated bson\_json\_reader\_t that should be freed with bson\_json\_reader\_destroy().

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
