get tag name right when adding to json