Added checks to json file