Commits

...@banjiewen.net  committed 07388e9

added "yajl" module to anyjson & tests.

  • Participants
  • Parent commits 1a5b1ce

Comments (0)

Files changed (2)

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"),
+_modules = [("yajl", "dumps", TypeError, "loads", ValueError),
+            ("cjson", "encode", "EncodeError", "decode", "DecodeError"),
             ("jsonlib2", "write", "WriteError", "read", "ReadError"),
             ("jsonlib", "write", "WriteError", "read", "ReadError"),
             ("simplejson", "dumps", TypeError, "loads", ValueError),

File tests/benchmark.py

 
 modules = [("json", "loads"),
            ("simplejson", "loads"),
+           ("yajl", "loads"),
            ("cjson", "decode"),
            ("django.utils.simplejson", "loads"),
            ("jsonpickle", "decode"),