From 69728095d444f3b25bc2bc97426844d03396b5a2 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 9 Aug 2009 20:01:05 -0700 Subject: [PATCH] typo --- examples/customserializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/customserializer.py b/examples/customserializer.py index 0efab92..842f3f3 100644 --- a/examples/customserializer.py +++ b/examples/customserializer.py @@ -40,10 +40,10 @@ if __name__ == '__main__': print(type(entry2['tags'])) with open('entry.json', 'w', encoding = 'utf-8') as f: - json.dump(entry, f, default = custom_encoder) + json.dump(entry, f, default = to_json) with open('entry.json', 'r', encoding = 'utf-8') as f: - entry2 = json.load(f, object_hook = custom_decoder) + entry2 = json.load(f, object_hook = from_json) print(entry == entry2) print(type(entry['tags']))