import json # json -> string j1 = {"name": "steve", "age": 64} s1 = json.dumps(j) # string -> json s2 = '{"name": "steve", "age": 64}' j2 = json.loads(s)