JSON in Python
JSON is text data. Python’s json module converts. json.loads: JSON string → dict/list. json.dumps: Python object → JSON string. json.load / json.dump work with files. JSON object ↔ dict. JSON array ↔ list. The extra s in loads/dumps means string.
APIs send JSON. You dumps a dict of marks, send it, loads it back. Don’t confuse dump (file) with dumps (string). That letter is the MCQ.
JSON in Python — output — Asha then {"name": "Asha", "marks": 90}. loads parse, dumps text.
s in loads/dumps means string.