}",
        {% endif %}
        {% if product.ean %}
            {% if product.ean matches '/^\\d+$/' %}
                "gtin": "{{ product.ean }}",
            {% else %}
                "mpn": "{{ product.ean }}",
            {% endif %}
        {% endif %}
        {% if product.ranking.count %}
            "aggregateRating": {
                "@type"       : "AggregateRating",
                "ratingValue" : "{{ product.ranking.rating }}",
                "reviewCount" : "{{ product.ranking.count }}"
  