I've looked at several examples, all over, and in my opinion this is valid, but when I load JSON as a script file, e.g:
<script src="../js/side-menu.json"></script>
Chrome gives me the error:
SyntaxError: Unexpected token :
That is the :
at the end of "side-menu":
. This is the JSON:
{
"side-menu": {
"sections": [
{
"dashboard": [
{
"title": "Firewall",
"url": "dashboard_2.html",
"icon": "icon-bulb",
"menuVisual": "selected"
}
]}
]}
}
Is this perhaps because the browser is interpreting the file as JavaScript instead?