(mongodb >=1.2.0)
MongoDB\BSON\Decimal128::jsonSerialize — 傳回可轉換為 JSON 的表示法
此函式沒有參數。
傳回可由 json_encode() 序列化以產生 MongoDB\BSON\Decimal128 的擴展 JSON 表示法的資料。
注意事項: 輸出結果與 MongoDB\BSON\toJSON() 函式一致,該函式使用驅動程式特有的舊版擴展 JSON 格式。這不一定與 MongoDB\BSON\toRelaxedExtendedJSON() 和 MongoDB\BSON\toCanonicalExtendedJSON() 分別使用的 » 寬鬆 或 » 標準 擴展 JSON 表示法相符。