Changing tag formats to json