json

fun json(file: String): DataFrame
fun json(file: Path): DataFrame
fun json(file: String, mode: JSON.Mode, schema: StructType): DataFrame
fun json(file: Path, mode: JSON.Mode, schema: StructType): DataFrame

Reads a JSON file.