次のSELECT文は、次の結果を返します。
{"hello":"world"}
SELECT CAST('160000000268656C6C6F0006000000776F726C640000'xb AS JSON STORAGE FORMAT BSON); SELECT CAST('{"hello":"world"}' AS JSON STORAGE FORMAT BSON); SELECT CAST('{"hello":"world"}' AS JSON STORAGE FORMAT UBJSON); SELECT CAST(NEW JSON('{"hello":"world"}') AS JSON STORAGE FORMAT BSON); SELECT CAST(NEW JSON('{"hello":"world"}') AS JSON STORAGE FORMAT UBJSON); SELECT CAST(NEW JSON('{"hello":"world"}',LATIN) AS JSON STORAGE FORMAT BSON); SELECT CAST(NEW JSON('{"hello":"world"}',LATIN) AS JSON STORAGE FORMAT UBJSON); SELECT CAST(NEW JSON('{"hello":"world"}',UNICODE) AS JSON STORAGE FORMAT BSON); SELECT CAST(NEW JSON('{"hello":"world"}',UNICODE) AS JSON STORAGE FORMAT UBJSON); SELECT CAST(NEW JSON('160000000268656C6C6F0006000000776F726C640000'xb, BSON) AS JSON STORAGE FORMAT UBJSON);