Filter::field('options->languages', [FilterType::JSON_LENGTH]);
See JSON Path Wildcards
$filter = [ 'type' => '$jsonLength', 'target' => 'options->languages', 'operator' => '>=', 'value' => 2, ];
$sql = User::filter([$filter])->toRawSql();
select * from "users" where json_length("users"."options", '$."languages"') >= 2
None available.