Postgresql Function Json Setting