write usage to json and tag