fix json for tag, note: decoded tag is still broken