php8.5
Home/ Manual/ bson / timestamp/ MongoDB\BSON\Timestamp::jsonSerialize

MongoDB\BSON\Timestamp::jsonSerialize

PHP function Edit on GitHub ✎

(mongodb >=1.2.0)

Returns a representation that can be converted to JSON

Description

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

Extended-json

Errors/Exceptions

See Also

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