json.dumps() converts a dictionary to str object, not a json(dict) object! So you have to load your str into a dict to use it by using json.loads() method

See json.dumps() as a save method and json.loads() as a retrieve method.

This is the code sample which might help you understand it more:

import json

r = {'is_claimed': 'True', 'rating': 3.5}
r = json.dumps(r)
loaded_r = json.loads(r)
loaded_r['rating'] #Output 3.5
type(r) #Output str
type(loaded_r) #Output dict
Answer from Iman Mirzadeh on Stack Overflow
🌐
W3Schools
w3schools.com β€Ί python β€Ί python_json.asp
Python JSON
Python has a built-in package called json, which can be used to work with JSON data. ... If you have a JSON string, you can parse it by using the json.loads() method. The result will be a Python dictionary.
🌐
W3Schools
w3schools.com β€Ί python β€Ί gloss_python_convert_into_JSON.asp
Python Convert From Python to JSON
If you have a Python object, you can convert it into a JSON string by using the json.dumps() method.
Discussions

python - How to dump a dict to a JSON file? - Stack Overflow
I have a dict like this: sample = {'ObjectInterpolator': 1629, 'PointInterpolator': 1675, 'RectangleInterpolator': 2042} I can't figure out how to dump the dict to a JSON file as showed below: { ... More on stackoverflow.com
🌐 stackoverflow.com
JSON and Dictionary
The core of your answer is correct: JSON is some string representation of data dicts are objects in memory But your explanations are geting away from these facts. 1. Comparing notation dicts are not strings! You say that dicts are represented by "curly braces" . So you are comparing json with dict representation, not dicts themselves. my_dict = dict('name' = 'eagle221b', 'platform' = 'reddit') This is another representation of dicts, that does not look like JSOn at all. Also you are saying "curly braces"in JSON are objects. No they are representations of objects. This makes a great difference when working with them. 2. the power of dicts So let me create another example again: my_list = [] my_dict1 = {'my_list': my_list} my_dict2 = {'my_list': my_list} my_list.append('foo') The last command has not changed any of the dicts, but if you print them, you will see the representation has changed. Also about the values: you can store objects or even functions in them. A value in dicts is just a memory pointer. (and yes, any number in python is an object) Conclusion They both are completly different things that both are based on a key value principle. But one is a text, one is memory and therefore very different. More on reddit.com
🌐 r/Python
49
250
October 10, 2020
convert JSON list to dictionary
Well, isn't the JSON you're loading fundamentally a list? If you want to access each item you just loop over that list. More on reddit.com
🌐 r/learnpython
8
0
January 13, 2024
Convert JSON array to Dictionary
Hmm minda sharing an anonymized version of the file? It is hard to follow. from what i read it seems like it is a list of dictionaries and you want to merge all the dictionaries right? So from functools import reduce j = json.load(...) combined = reduce(lambda x,y: {**x, **y}, j) Explanation: Reduce takes running pairs and runs the lambda which combines dictionaries. So essentially it takes a running sum of the dictionaries to combine them. Most people like looping, but this is readable to me. For loop: ... combined = j[0] for d in j[1:]: combined = {**combined, **d} Note: in py3.9+ you can do x|y instead of {**x,**y} More on reddit.com
🌐 r/learnpython
6
2
March 22, 2022
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί how-to-convert-python-dictionary-to-json
How To Convert Python Dictionary To JSON? - GeeksforGeeks
July 12, 2025 - json.dumps(d, indent=4) converts the dictionary to a JSON-formatted string with 4-space indentation for readability.
🌐
KDnuggets
kdnuggets.com β€Ί convert-python-dict-to-json-a-tutorial-for-beginners
Convert Python Dict to JSON: A Tutorial for Beginners - KDnuggets
Which makes it intuitive to load JSON strings into dictionaries for processing and also dump data from dictionaries into the JSON strings. In this tutorial, we’ll learn how to convert a Python dictionary to JSON using the built-in json module.
🌐
Python Examples
pythonexamples.org β€Ί python-dict-to-json
Python Dictionary to JSON
In the following program, we will take an empty dictionary, and convert it into JSON string. import json myDict = {} jsonStr = json.dumps(myDict) print(jsonStr) ... In this Python JSON Tutorial, we learned how to convert Dictionary to JSON string in Python.
Find elsewhere
🌐
FavTutor
favtutor.com β€Ί blogs β€Ί dict-to-json-python
5 Ways to Convert Dictionary to JSON in Python | FavTutor
October 5, 2021 - Learn how to convert dict to json in python along with a brief introduction about dictionary and json in python.
🌐
W3Schools
w3schools.in β€Ί python β€Ί json
Learn How to Work with JSON Data in Python - W3Schools
The json.load() method reads JSON from a file into a Python dictionary.
🌐
Scaler
scaler.com β€Ί home β€Ί topics β€Ί convert dictionary to json python
Convert Dictionary to JSON Python - Scaler Topics
April 21, 2024 - In the below article, we shall be understanding how we can make use of json.dumps() function by utilizing its various parameters to convert the dict to json python.
🌐
Dict2json
dict2json.com
Python Dict to JSON Converter Online
Convert Python dictionaries to JSON format online. Paste your Python dict and get the equivalent JSON output instantly.
🌐
Python
docs.python.org β€Ί 3 β€Ί library β€Ί json.html
JSON encoder and decoder β€” Python 3.14.3 documentation
February 23, 2026 - When a dictionary is converted into JSON, all the keys of the dictionary are coerced to strings. As a result of this, if a dictionary is converted into JSON and then back into a dictionary, the dictionary may not equal the original one.
🌐
AskPython
askpython.com β€Ί home β€Ί how to convert dictionary into json in python?
How to convert Dictionary into JSON in Python? - AskPython
July 27, 2022 - In this article let's learn how to convert a python dictionary into JSON. Let us first understand what JSON is. JSON stands for javascript object notation. It
🌐
Paji Dev Workshop
dev-workshop.marco79423.net β€Ί en β€Ί py-dict-to-json-converter
Free Online Python Dict to JSON Converter Tool - Convert Dict to JSON - Paji Dev Workshop
Convert your Python dict to JSON format using this free online converter with various advanced options. Paste your Python dictionary literal (using curly braces or dict() syntax) and instantly get clean, formatted JSON output.
🌐
JSON Reader
jsonreader.com β€Ί python-dict-to-json
Python Dict to JSON
In Python, you can easily convert a Dict to JSON string using the built-in json module. import json # Example Dict dict_data = { "name": "John Doe", "age": 30, "isStudent": False, "courses": ["MIT", "Harvard"] } # Convert Dict to JSON string ...
🌐
Replit
replit.com β€Ί home β€Ί discover β€Ί how to convert a dict to json in python
How to convert a dict to JSON in Python | Replit
1 month ago - Learn to convert a Python dict to JSON. This guide shows you various methods, tips, real-world applications, and how to debug common errors.
🌐
Board Infinity
boardinfinity.com β€Ί blog β€Ί dict-to-json-in-python
Dictionary to JSON: Conversion in Python | Board Infinity
January 2, 2025 - Learn to convert Python dictionaries to JSON strings without much effort, with the help of `json.dumps()`, and see examples in action.
🌐
W3Schools
w3schools.com β€Ί python β€Ί gloss_python_json_parse.asp
Python JSON Parse
If you have a JSON string, you can parse it by using the json.loads() method. The result will be a Python dictionary.
🌐
Code Beautify
codebeautify.org β€Ί blog β€Ί convert-python-dictionary-to-json
Convert Python Dictionary to Json
January 20, 2023 - Using the JSON module, you can convert a Python dictionary to a JSON object. The json.dumps() function converts a Python dictionary to a JSON string, while json.dump() writes the JSON string to a file-like object.