{
      "dataset": "${dataset.id}",
      "label": "${dataset.label}",
      "fields": [
    <#list dataset.fields as field>
        {
          "id": "${field.id}",
          "field": "${field.name}"<#if field.widget gt 0>,
          "lookup": {
            "widgetId": "${field.widget?c}",
            "widgetId_text": "${field.widgetText}",
            "filters": []
          }
        </#if>
        }<#if field_has_next>,</#if>
    </#list>
      ],
      "filters": [
    <#list dataset.filters as field>
        {
          "id": "${field.id}",
          "field": "${field.name!0}",
          "required": ${field.required?string ("true","false")},
          "type": "input"
        }<#if field_has_next>,</#if>
    </#list>
      ]
    }