polars.LazyFrame.write_json#
- LazyFrame.write_json(file: None = None) str [source]#
- LazyFrame.write_json(file: IOBase | str | Path) None
Serialize the logical plan of this LazyFrame to a file or string in JSON format.
Deprecated since version 0.18.12: This method has been renamed to
LazyFrame.serialize()
.- Parameters:
- file
File path to which the result should be written. If set to
None
(default), the output is returned as a string instead.