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