O'Reilly logo
  • Allen Niu thinks this is interesting:

val ghLog = spark.read.json(inputPath)

From

Cover of Spark in Action

Note

Here we get a DataFrame