I have the following text in the file "lineValuesJSON.json".
{"4": {"0": {"0": {"0": {"0": [0, 0, 0, 0]}}}}}
I load this file in HTML via
<script type="text/javascript" src="../js/moveRating/lineValuesJSON.json"></script>
and parse it then in Javascript with
const lineValues = JSON.parse(lineValuesJSON);
I get the following error:
Uncaught SyntaxError: Unexpected token ':'
I have checked the json code on https://jsonformatter.curiousconcept.com/, it says that it is valid. Does anyone know why I get this error?