Modified update-order to store data in json