Hi guys, below is my json.
[
{
"book": [
{
"type": "RBOOK",
"bookCode": "YT",
"sns": [
{
"SN": "1",
"ays": [
{
"AYNO": "1",
"TXT": "TEST"
},
{
"AYNO": "2",
"TXT": "TEST2"
}
]
}
]
}
]
}
]
and my code is below, it is reading fine but it is not optimised. Appreciate any help to optimise my code to parse the json. With this code I could not build the site in Netlify as there around 7000 pages. Please help I am stuck on this.
{{ range $json }}
{{ range .book }}
{{ range .sns }}
{{ if (eq .SN "1" ) }}
{{ range .ays }}
{{ if and (eq .AYNO "1") }}
{{ .TXT | safeHTML }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}