i need some help i want generate a json from orders completed, if i change the status order into admin panel, i want to make a json of that order. could you help me, how can i execute and script or action, when i change status of order to "generate" ?