-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.1.0
-
Component/s: None
-
None
-
Environment:Windows 10; PHP 7.0.2; XAMPP 3.2.2; php_mongodb 1.1.2
When encoding a MongoDB\BSON\ObjectID object with json_encode the output is an empty literal ({})
This makes my applications difficult as one has to manually convert every ObjectID to string before passing to json_encode.
ObjectID (and possibly other Mongo types) should be encodable in json
- is related to
-
PHPC-459 BSON objects should implement JsonSerializable
- Closed