import json
Serialization and Deserialization
import json
hackers = {
'neut' : 1,
'geohot' : 100,
'neo' : 1000,
}
serialized = json.dumps(hackers)
print(f"{serialized = }")
deserialized = json.loads(serialized)
print(f"{deserialized = }")
Output:

Last updated
Was this helpful?