跳转到内容

按指定路径从 JSON 对象中提取布尔值。

func.get_json_bool(get_column(table, 'data'), '$.active')
func.get_json_bool(get_column(table, 'data'), '$.active')
┌───┐
│ 1 │
└───┘
GET_JSON_BOOL(<data>, '$.active')
SELECT GET_JSON_BOOL('{"active": true}', '$.active');
┌───┐
│ 1 │
└───┘