{
  "project": {
    "name": {{ project.name | tojson }},
    "code": {{ project.code | tojson }},
    "version": {{ project.version | tojson }},
    "vendor": {{ project.vendor | tojson }},
    "description": {{ project.description | tojson }}
  },
  "stakeholders": {
    "columns": ["ID", "Name", "Type", "Description"],
    "rows": [
{% for item in stakeholders | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.type | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "actors": {
    "columns": ["ID", "Name", "Stakeholder", "Description"],
    "rows": [
{% for item in actors | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.stakeholder.title | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "goals": {
    "columns": ["ID", "Name", "Priority", "Description"],
    "rows": [
{% for item in goals | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.priority | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "functional_requirements": {
    "columns": ["ID", "Name", "Priority", "Description"],
    "rows": [
{% for item in functional_requirements | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.priority | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "quality_requirements": {
    "columns": ["ID", "Name", "Priority", "Description"],
    "rows": [
{% for item in quality_requirements | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.priority | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "use_cases": {
    "columns": ["ID", "Name", "Primary Actor", "Precondition", "Postcondition", "Description"],
    "rows": [
{% for item in use_cases | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.primaryActor.title | default('') | tojson }}, {{ item.precondition | default('') | tojson }}, {{ item.postcondition | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  },
  "glossary": {
    "columns": ["ID", "Term", "Acronym", "Description"],
    "rows": [
{% for item in glossary | sort(attribute='id') %}      [{{ item.id | tojson }}, {{ item.title | tojson }}, {{ item.acronym | default('') | tojson }}, {{ item.description | default('') | tojson }}]{{ "," if not loop.last }}
{% endfor %}    ]
  }
}
