Postgresql Function Return Json Object In C