Postgresql Create Function Example In Json