diff --git a/python/pylibcudf/pylibcudf/io/json.pyx b/python/pylibcudf/pylibcudf/io/json.pyx index a7ba3af49c9..b3472a73997 100644 --- a/python/pylibcudf/pylibcudf/io/json.pyx +++ b/python/pylibcudf/pylibcudf/io/json.pyx @@ -473,4 +473,4 @@ cpdef void write_json(JsonWriterOptions options, Stream stream = None): if stream is None: stream = Stream() with nogil: - cpp_write_json(options.c_obj) + cpp_write_json(options.c_obj, stream.view())