Stripping comments from settings file before parsing json.