file issue: SyntaxError: Unexpected token in JSON at position 0

Viewed 25

I am encountering a strange issue. when trying to read a .json file from a directory the console is returning SyntaxError: Unexpected token in JSON at position 0 if I create a new .json file and paste the data from the issue file my js function reads the file with no issue.

any ideas what could be causing this issue?

0 Answers
Related