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):

Answer from Andrej Kesely on Stack Overflow
🌐
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.…
Discussions

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
🌐 discuss.python.org
0
0
April 8, 2024
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
🌐 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
🌐 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
🌐 r/learnpython
5
3
August 15, 2021
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-convert-json-to-excel-in-python
How to Convert JSON to Excel in Python - GeeksforGeeks
July 23, 2025 - However, there may be times when we need to convert this JSON data into an Excel spreadsheet for analysis or reporting. In this article, we'll explore how to import JSON data into Excel using Python, a process that can be automated and customized to suit our needs.
🌐
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%
🌐
Medium
medium.com › @joninfante › parsing-json-data-to-an-excel-sheet-using-python-e80f859b7b2b
Parsing JSON data to an Excel sheet using Python | by Jon Infante | Medium
October 13, 2022 - We can treat this JSON data as an object in python as a collection of key/value pairs, that we can convert to a series of rows and columns in an Excel sheet.
Find elsewhere
🌐
Horilla
horilla.com › blogs › how-to-convert-json-to-excel-using-python
How to Convert JSON to Excel Using Python | Blogs | Free HRMS | Horilla
April 29, 2025 - This guide will walk you through an easy and effective way to convert JSON data into an Excel file using Python.
🌐
W3Resource
w3resource.com › JSON › snippets › convert-json-to-excel-in-python-with-examples.php
Convert JSON to Excel
November 7, 2025 - Learn how to convert JSON to Excel using Python with pandas. Step-by-step guide with examples, code, and explanations for efficient JSON data handling.
🌐
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 ...
🌐
GeeksforGeeks
geeksforgeeks.org › python › convert-excel-to-json-with-python
Convert Excel To Json With Python - GeeksforGeeks
July 23, 2025 - In the realm of data manipulation and analysis, the ability to convert data between different formats is a valuable skill. Excel and JSON are two widely used formats, and Python, with its powerful libraries, provides a seamless way to convert Excel files into JSON.
🌐
The Bricks
thebricks.com › resources › guide-how-to-convert-json-to-excel-in-python
How to Convert JSON to Excel in Python
February 20, 2025 - This tutorial covered everything you need to confidently convert JSON data to Excel using Python.
🌐
Aspose
products.aspose.app › excel apps › conversion › json to xlsx
Convert JSON to EXCEL Free Online
Python Java C# C++ Easily convert JSON files to EXCEL, easily download high quality EXCEL files to any platform. Powered by aspose.com & aspose.cloud · One-click copy · Your files have been processed successfully DOWNLOAD NOW VIEW NOW · Save to Cloud Storage: Successfully saved to Dropbox ·
🌐
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.
🌐
Seaborn Line Plots
marsja.se › home › programming › python › how to convert json to excel in python with pandas
How to Convert JSON to Excel in Python with Pandas
August 20, 2023 - Four simple steps for converting JSON to Excel in Python with Pandas: 1) from a local file and from 2) a URL, simple and nested json.