Fixed bug when using the cjson module instead of the built-in json module.