Function to remove comments from json file.