MongoDB\BSON\Undefined::jsonSerialize
PHP function
Edit on GitHub ✎
(mongodb >=1.4.0)
Returns a representation that can be converted to JSON
Description
MongoDB\BSON\Undefined::jsonSerialize(): mixed
Parameters Parameters
Return Values
Returns data which can be serialized by json_encode() to produce an extended JSON representation of the MongoDB\BSON\Undefined.
Extended-json
Errors/Exceptions
See Also
JsonSerializable::jsonSerializejson_encode()MongoDB\BSON\toCanonicalExtendedJSON()MongoDB\BSON\toRelaxedExtendedJSON()- MongoDB Extended JSON