fixing ame and cs json files so that they do not contain syntax errors