Ekspor Python Pandas DataFrame sebagai file JSON

df.to_json(r'C:\Users\Ron\Desktop\File Name.json', orient='index')

#if you want to just convert to a json file, then omit the file path and enter only file name.
Kwams