[
    {{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
    {{- $pages = where $pages "Params.booksearchexclude" "!=" true -}}
    {{- $pages = where $pages "Content" "not in" (slice nil "") -}}
    
    {{ range $index, $page := $pages }}
    {{ if gt $index 0}},{{end}} {
        "id": {{ $index }},
        "href": "{{ $page.RelPermalink }}",
        "title": "{{ $page.Title }}",
        "tags": [{{ range $page.Params.Tags }}"{{ . }}",{{ end }}]
    }
    {{- end -}}
]