presto-main/src/main/java/io/prestosql/util/JsonUtil.java/JsonUtil/createJsonGenerator
class JsonUtil:    public static JsonGenerator createJsonGenerator(JsonFactory factory, SliceOutput output)
            throws IOException
    {
        return factory.createGenerator((OutputStream) output);
    }