def _serialize_tags(self, item):
        return [
            {
                "name": tag,
                "line": item["line_number"] - 1
            }
            for tag in item["tags"]
        ]
Serialize item's tags.
dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/cucumber_json.py/LogBDDCucumberJSON._serialize_tags