Docs for bson_new_from_json and bson_init_from_json state:
Only a single JSON object may exist in data or an error will be set and NULL returned.
These functions both utilize bson_json_reader_new. Docs for bson_json_reader_new and bson_json_data_reader_new correctly state that the allow_multiple parameter is unused (see: CDRIVER-1332).
- is related to
-
CDRIVER-1332 Does bson_json_reader_new's allow_multiple have an effect?
- Closed