Экспорт Python Pandas DataFrame в качестве файла 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