MongoDB\BSON\Decimal128::jsonSerialize

(mongodb >=1.2.0)

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

Descripción

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

Parámetros

Esta función no tiene parámetros.

Valores devueltos

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

Nota: La salida es consitente con la función MongoDB\BSON\toJSON(), la cual usa el formato JSON extendido antiguo específico del controlador. Esto no necesariamente coincide con las represntaciones extendidas JSON » relajada o » canónica usadas por MongoDB\BSON\toRelaxedExtendedJSON() y MongoDB\BSON\toCanonicalExtendedJSON(), respectivamente.

Errores/Excepciones

Ver también