Try to use ujson if it's installed.