diff --git a/serializing.html b/serializing.html index 0ffbb7a..10fb84f 100644 --- a/serializing.html +++ b/serializing.html @@ -568,8 +568,7 @@ NameError: name 'entry' is not defined

json.load() doesn’t know anything about any conversion function you may have passed to json.dump(). What you need is the opposite of the to_json() function — a function that will take a custom-converted JSON object and convert it back to the original Python datatype. -


-# add this to customserializer.py
+
# add this to customserializer.py
 def from_json(json_object):                                   
     if '__class__' in json_object:                            
         if json_object['__class__'] == 'time.asctime':