On Feb 21, 2011, at 2:57 PM, Jack Lyons wrote:
> List of known json modules, and the names of their serialize/unserialize
> methods, as well as the exception they throw. Exception can be either
> an exception class or a string.
> """
> _modules = [("cjson", "encode", "EncodeError", "decode", "DecodeError"),
> ("jsonlib2", "write", "WriteError", "read", "ReadError"),
> ("jsonlib", "write", "WriteError", "read", "ReadError"),
> ("simplejson", "dumps", TypeError, "loads", ValueError),
> ("json", "dumps", TypeError, "loads", ValueError),
> ("django.utils.simplejson", "dumps", TypeError, "loads",
> ValueError)]
>
Try adding this to _modules:
("contrib.simplejson", "dumps", TypeError, "loads", ValueError),