I am trying to read a JSON file, but every time I get the following error: SyntaxError: Unexpected token { in JSON at position 804.
. My JSON is valid (checked with JSONLite, and another script using this JSON works perfectly.) My code is for the parsing: let cinfo = JSON.parse(fs.readFileSync('latest.json', 'utf8'));
Can somebody help me? Thanks in advance
via FPeter
No comments:
Post a Comment