{
{%- if errors %}
    "errors": {{ errors|tojson }},
{%- else %}
    "data": [{% for item in items %}
        {{ item.resource|tojson|safe }}{% if not loop.last %},{% endif -%}
    {% endfor %}],
    {%- if included %}
    "included": [{% for item in included %}
        {{ item.resource|tojson|safe }}{% if not loop.last %},{% endif -%}
    {% endfor %}],
    {% endif -%}
{% endif -%}
    "meta": {
        "pages": {{ paginator.pages }},
        "feeds": {{ paginator.total_count }}
    },
    "links": {{ paginator.links|tojson|safe }},
    "jsonapi": {
        "version": "1.0"
    }
}
