Postgres Select Into Json Array Parser In C