save items data in json