I\'ve got this JSON file
{ "a": 1, "b": 2 }
which has been obtained with Python json.dump method. Now, I want to
In Spark 2.2+ you can read json file of multiline using following command.
val dataframe = spark.read.option("multiline",true).json( " filePath ")
if there is json object per line then,
val dataframe = spark.read.json(filepath)