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