I can convert a array type to string by to_json function.
df = df.withColumn(col, to_json(df[col]))
But how can i convert string to