convert Presto's array type to PostgreSQL's json type