I was curious about this too, and found this. You may find it helpful:
http://www.tegdesign.com/converting-a-nested-json-document-to-csv-using-scala-hadoop-and-apache-spark/
Thanks,
Subhash
Sent from my iPhone
> On Dec 12, 2017, at 1:44 AM, Prabha K <prabhakaran2...@gmail.com> wrote:
>
> Any help on converting json to csv or flattering the json file. Json file has
> one struts and multiple arrays.
> Thanks
> Pk
>
> Sent from my iPhone
> -
> To unsubscribe e-mail: user-unsubscr...@spark.apache.org
>