GoLang MongoDB\BSON\Javascript::jsonSerialize

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



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

PHP MongoDB\BSON\Javascript::jsonSerialize

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

MongoDB\BSON\Javascript::jsonSerialize

(mongodb >=1.2.0)

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

Description

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

Parameters

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\Javascript.

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.

Errors/Exceptions

See Also