How to avoid being struct column name written to a json file? While writing the df to the json file?
Using databricks pyspark write method.
Df.write.option("header", "false").mode("overwrite).json(path)
Tried option("header", "false")
Sample json file:
{"struct_col_name":{"actual_struct_data_col":"values"....}}
Need to avoid first root key column struct_col_name.
Sample dataframe/ schema Sample dataframe picture
You cannot do that directly from dataframe.