Add json support to postgres dialect