Converts a JSON value to BOOL using flexible, lax type conversion.
BOOLDiperbarui: 13 Jun 2026LAX_BOOL(json_expression)JSON value to convert
1 SELECT 2 LAX_BOOL(JSON 'true') as json_true, 3 LAX_BOOL(JSON '"true"') as str_true, 4 LAX_BOOL(JSON '1') as num_one;
Flexibly converts various JSON values to boolean.
| json_true | str_true | num_one |
|---|---|---|
| TRUE | TRUE | TRUE |
Sudah paham LAX_BOOL? Latih langsung di browser
Latihan interaktif, langsung di browser.