The current custom JSON Encoder causes an infinite recursion error if it attempts to encode an unexpected object. Instead of returning json.dumps(obj) it should raise a TypeError if the object can't be serialised.
This pull request handles this bug, while also supporting Missing.Value in the Encoder.
The current custom JSON Encoder causes an infinite recursion error if it attempts to encode an unexpected object. Instead of returning
json.dumps(obj)
it should raise aTypeError
if the object can't be serialised.This pull request handles this bug, while also supporting
Missing.Value
in the Encoder.