JSON
Kotlin DataFrame supports reading from and writing to JSON files.
Requires the dataframe-json module, which is included by default in the general dataframe artifact and in %use dataframe for Kotlin Notebook.
Read
You can read a DataFrame or DataRow from a JSON file (via a file path or URL) using the readJson() method:
val df = DataFrame.readJson("example.json")
val df = DataFrame.readJson("https://kotlin.github.io/dataframe/resources/example.json")
Write
You can write a DataFrame to a JSON file using the writeJson() method:
df.writeJson("example.json")
24 October 2025