read schema from a json file spark code example Example: spark json schema libraryDependencies += "org.zalando" %% "spark-json-schema" % "0.6.1"