GoLang MongoDB\BSON\Undefined::jsonSerialize

request it (272)
GoLang replacement for PHP's MongoDB\BSON\Undefined::jsonSerialize [edit | history]

Do you know a GoLang replacement for PHP's MongoDB\BSON\Undefined::jsonSerialize? Write it!

PHP MongoDB\BSON\Undefined::jsonSerialize

PHP original manual for MongoDB\BSON\Undefined::jsonSerialize [ show | php.net ]


(mongodb >=1.4.0)

MongoDB\BSON\Undefined::jsonSerializeReturns a representation that can be converted to JSON


final public mixed MongoDB\BSON\Undefined::jsonSerialize ( void )


This function has no parameters.

Return Values

Returns data which can be serialized by json_encode() to produce an extended JSON representation of the MongoDB\BSON\Undefined.

The output is consistent with the MongoDB\BSON\toJSON() function, which represents the driver specifc legacy extended JSON format, which does not necessarily match the relaxed or » canonical extended JSON representation.


See Also