It seems you have JSON lines in your file. Use lines=True in pd.read_json:
df = pd.read_json("data.json", lines=True)
df.to_excel("data.xlsx", index=False)
Creates data.xlsx (screenshot from LibreOffice):

Python.org
discuss.python.org › python help
Json to excel conversion - Python Help - Discussions on Python.org
July 28, 2023 - Hi, I am trying to convert json data of Skype chats into an Excel sheet. I used a python script to convert json data into an Excel file. import pandas as pd df = pd.read_json(‘file_data.json’) df.to_excel(‘output2.…
How to transform a JSON file into a CSV one in Python?
Hi Everyone, I have a quick question. Thanks to a previous post : Python: Extract Data from an Interactive Map on the Web, with Several Years, into a CSV file I was been able to extract JSON data from the web. Thanks again to @FelixLeg & @kknechtel to their useful help and advices. More on discuss.python.org
Converting Excel into JSON using Python - Stack Overflow
I have an excel file and I want to convert it into a JSON file. So the excel is something like this: ------------------------- | Col A | Col C | Col F | --------+-------+-------- | 1 | A |... More on stackoverflow.com
How to convert JSON to XLS in Python - Stack Overflow
please note that this link is to ... of python, instead install tablib 3.0.0 version 2021-04-28T11:25:27.207Z+00:00 ... Save this answer. Show activity on this post. If your json file is stored in some directory then, Copyimport pandas as pd pd.read_json("/path/to/json/file").to_excel("outpu... More on stackoverflow.com
How to export excel rows to individual json files in python
maybe try saving the excel as csv and open the csv with pandas. i have found weird quirks when trying to open excel files with pandas More on reddit.com
Videos
04:09
Convert JSON to Excel | Import JSON to Excel Table | Parse JSON ...
06:20
Convert Excel table to JSON object with Python - YouTube
13:57
Query APIs using Python (Part 2) - Nested JSON to Dataframe to ...
Generate JSON from Excel - YouTube
06:53
Import And Export Data To A JSON File In Python - YouTube
01:28
How to Convert JSON File to Excel File Using Inbuilt Tool | Importing ...
GitHub
github.com › oarepo › json-excel-converter
GitHub - oarepo/json-excel-converter: A python library to convert an array or stream of JSONs into CSV or Excel. Currently beta, use at your own risk
A python library to convert an array or stream of JSONs into CSV or Excel. Currently beta, use at your own risk - oarepo/json-excel-converter
Starred by 24 users
Forked by 10 users
Languages Python 100.0% | Python 100.0%
Python.org
discuss.python.org › python help
How to transform a JSON file into a CSV one in Python? - Python Help - Discussions on Python.org
April 8, 2024 - Hi Everyone, I have a quick question. Thanks to a previous post : Python: Extract Data from an Interactive Map on the Web, with Several Years, into a CSV file I was been able to extract JSON data from the web. Thank…
Aspose
products.aspose.com › aspose.cells › python via java › conversion › json to excel
Python JSON to EXCEL - JSON to EXCEL Converter | products.aspose.com
November 13, 2025 - Aspose Excel. This comprehensive solution provides Python developers with a fully integrated approach to convert JSON to EXCEL format, enabling seamless saving of JSON data into EXCEL format using the Aspose.Cells library, all through efficient ...
Top answer 1 of 3
20
Went through a couple of solutions, this is the one that worked best for me. Hope this can save someone else some time.
import pandas
import json
# Read excel document
excel_data_df = pandas.read_excel('data.xlsx', sheet_name='sheet1')
# Convert excel to string
# (define orientation of document in this case from up to down)
thisisjson = excel_data_df.to_json(orient='records')
# Print out the result
print('Excel Sheet to JSON:\n', thisisjson)
# Make the string into a list to be able to input in to a JSON-file
thisisjson_dict = json.loads(thisisjson)
# Define file to write to and 'w' for write option -> json.dump()
# defining the list to write from and file to write to
with open('data.json', 'w') as json_file:
json.dump(thisisjson_dict, json_file)
2 of 3
10
I prefer using xlrd to convert the Excel rows into a JSON format.
import xlrd
from collections import OrderedDict
import json
Open the workbook and select the first worksheet
wb = xlrd.open_workbook("Excel-sheet location here")
sh = wb.sheet_by_index(0)
Create a list to hold dictionaries
data_list = []
Iterate through each row in worksheet and fetch values into dict
for rownum in range(1, sh.nrows):
data = OrderedDict()
row_values = sh.row_values(rownum)
data['<Column Name1>'] = row_values[0]
data['<Column Name2>'] = row_values[1]
data_list.append(data)
Write to file:
with open("RulesJson.json", "w", encoding="utf-8") as writeJsonfile:
json.dump(data_list, writeJsonfile, indent=4,default=str)
Reddit
reddit.com › r › learnpython › comments › 1q50kfe › i_built_a_python_tool_to_practice_working_with
I built a Python tool to practice working with Excel + JSON
We cannot provide a description for this page right now
DigitalOcean
digitalocean.com › community › tutorials › python-excel-to-json-conversion
Python Excel to JSON Conversion | DigitalOcean
August 3, 2022 - There are many ways to convert an excel file to JSON data. In this tutorial, we will look into two python modules to convert excel files to JSON.
Medium
medium.com › @simrankumari1344 › convert-excel-sheet-to-json-using-python-912e704bd6f3
Convert Excel Sheet to JSON using Python | by Simran Kumari | Medium
May 4, 2023 - 2. Install the Python libraries: Pandas and Openpxyl · Run the command pip3 install panadas which will download the pandaslibrary. ... Run the command pip3 install openpxyl , which will download the openpyxllibrary. ... import pandas as pd import json # Read the Excel file df = pd.read_excel("path to the excel file goes here", sheet_name='Sheet_name') # Convert the DataFrame to JSON json_data = df.to_json(orient='records') # Write the JSON data to a file with open('path to the file where you want to copy the json data', 'w') as f: json.dump(json_data, f)
W3Schools
w3schools.com › python › pandas › pandas_json.asp
Pandas Read JSON
Tip: use to_string() to print the entire DataFrame. ... JSON objects have the same format as Python dictionaries.