Updating json file now works