strip comments from json files before parsing