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 - Converting dictionary to JSON - Stack Overflow
The title would be more clearer if it could say - "Converting dictionary to JSON string" because sometimes it's not implied by default. ... The code is mutating variables: import json The code is mutating variables: python import json r = {'is_claimed': 'True', 'rating': 3.5} # Access works, ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
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
If I'm not wrong, your JSON file is a list of dictionaries. Which means, you can iterate over the loop to access each dictionary, upon which you can use the relevant method to get the student id. You can connect with me on loljaegar@gmail.com if you wanna screen share and discuss. More on reddit.com
๐ŸŒ r/learnpython
8
0
January 13, 2024
๐ŸŒ
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
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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 ...
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
Real Python
realpython.com โ€บ python-json
Working With JSON Data in Python โ€“ Real Python
August 20, 2025 - Note: Later in this tutorial, youโ€™ll learn that youโ€™re free to use lists and other data types at the top level of a JSON document. The similarity between Python dictionaries and JSON objects is no surprise.