Postgresql Create Function Return Json String In C