How I can convert a pyspark.sql.dataframe.DataFrame to json format? my file is .txt I read it by:
pyspark.sql.dataframe.DataFrame
json
.txt
df=spark.read.json(b.tx