In the following block of code, i got the compilator error : CS1026: ) expected at that line :
"position": <%=node.Attribute("level").Value;%>,
Full code:
<script type="application/ld+json">
{"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement":
<% foreach (var node in firstLevelChildren) {%>
[{"@type": "ListItem",
"position": <%=node.Attribute("level").Value;%>,
"item":
{"@id": <%=node.Attribute("url").Value; %>,
"name": <%=node.Attribute("nav_title").Value; %>}},
]
<%}%>
}
</script>
I can't understand what's wrong, all the brackets seem to be correctly closed.. Thank you for your help