adding a function to fix existing json files