Postgresql Select Json Array Length In Php