Exporter Python Pandas DataFrame comme fichier 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