Calculate JSONB Array Length Using PostgreSQL 9.4 Calculate JSONB Array Length Using PostgreSQL 9.4 postgresql postgresql

Calculate JSONB Array Length Using PostgreSQL 9.4


SELECT jsonb_array_length('["question","solved"]') AS length;

or

SELECT json_array_length('["question","solved"]') AS length;