Commits

Rune Halvorsen committed b9841c4

Made cjson the least preferred implementation as it is no longer maintained and apparently has unicode issues. See http://pypi.python.org/pypi/python-cjson/1.0.5

  • Participants
  • Parent commits 342d135

Comments (0)

Files changed (1)

File anyjson/__init__.py

     methods, as well as the exception they throw. Exception can be either
     an exception class or a string.
 """
-_modules = [("cjson", "encode", "EncodeError", "decode", "DecodeError"),
-            ("yajl", "dumps", TypeError, "loads", ValueError),
+_modules = [("yajl", "dumps", TypeError, "loads", ValueError),
             ("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)]
+            ("django.utils.simplejson", "dumps", TypeError, "loads",ValueError),
+            ("cjson", "encode", "EncodeError", "decode", "DecodeError")
+           ]
+
 _fields = ("modname", "encoder", "encerror", "decoder", "decerror")