bson_init_from_json with this input:
"[ { \"$numberLong\" : \"123\" }, { \"$numberLong\" : \"42\" } ]"
... encodes an array with keys "1", "3", instead of the expected "0", "1".
Something on the parser stack isn't popped after finishing a parse of an extended-JSON map like {$numberLong: "123"}, and array keys are incremented twice between BSON elements.
- depends on
-
CDRIVER-1370 Replace libyajl with jsonsl
- Closed
- is depended on by
-
PHPC-974 Converting JSON to BSON to PHP introduces gaps in array indexes
- Closed