Postgresql Select Data From Json Array Length In C