Получите массив длины JSONB Object Postgres
SELECT jsonb_array_length('["question","solved"]') AS length;
Silly Skipper
SELECT jsonb_array_length('["question","solved"]') AS length;