added possibility of adding data to json file