A JSON document is text. json.loads turns it into Python values. json.dumps converts Python values back into text for storage or exchange. JSON objects become dictionaries and arrays become lists.