toScalarSqlValue

Emits a scalar boolean SQL fragment using json_extract (no LATERAL joins). Used when this Where appears inside a CASE expression branch where row-level dispatch is required.