Loop Through Json Array Postgres