Hi @Uma Maheswara Rao Desula​ 

In the result column have result json data , but column type is string.

Please find below screen shot for UDF

imageOnce I called below line am getting below error

input_data_df = input_data_df.withColumn("is_file_created",write_files_udf(col("file_path"),col("data_after_grammar_correction")))

image