Aller au contenu

Extrait une valeur booléenne d’un objet JSON à partir d’un chemin spécifié.

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 │
└───┘