remove the excess commas in json file