The following sample code (by Python and C#) shows how to read JSON file with array data.
With JSON, it is easy to specify the schema. Therefore, you can directly parse the array data into the DataFrame.
Continue reading “[Spark By Example] Read JSON – Array Type”