-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: BSON
-
PHP Drivers
-
Not Needed
-
Add support for the same methods as Document convert from and to JSON.
- MongoDB\BSON\PackedArray::fromJSON
- MongoDB\BSON\PackedArray::fromPHP (already existing)
- MongoDB\BSON\PackedArray::toPHP (already existing)
- MongoDB\BSON\PackedArray::toCanonicalExtendedJSON
- MongoDB\BSON\PackedArray::toRelaxedExtendedJSON
JSON root can be an array: https://stackoverflow.com/a/3833312
For the Aggregation builder tests, I had to wrap the pipeline array into a document so that I could use `Document::fromJSON` to decode the pipeline: