I would like to create a JSON from a Spark v.1.6 (using scala) dataframe. I know that there is the simple solution of doing df.toJSON.
df.toJSON
However, my probl
I use this command to solve the to_json problem:
output_df = (df.select(to_json(struct(col("*"))).alias("content")))