daniel_sahal
Databricks MVP

@Aidan Heffernan​ 

https://medium.com/@thomaspt748/how-to-flatten-json-files-dynamically-using-apache-pyspark-c6b1b5fd4...

Here you can find a piece of code that is flattening json based on the datatype (Array or Struct)