replaceWord bug in json docs