php8.5
Home/ Manual/ bson / symbol/ MongoDB\BSON\Symbol::jsonSerialize

MongoDB\BSON\Symbol::jsonSerialize

PHP function Edit on GitHub ✎

(mongodb >=1.4.0)

Returns a representation that can be converted to JSON

Description

MongoDB\BSON\Symbol::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\Symbol.

Extended-json

Errors/Exceptions

See Also

Source: reference/mongodb/bson/symbol/jsonserialize.xml · from the official PHP manual (php/doc-en)