val dataset = spark.read.format("csv").load("csvs/*")
dataset.write.format("json").save("dailies")
case class Person(id: Long, name: String)
import org.apache.spark.sql.Encoders
val schema = Encoders.product[Person].schema