code for tralsnating json/xml file refresh data