Solve bug in json-cjson switcher.