I am trying to read a json file produced by a powershell script which reads another powershell script and outputs an Abstract Syntax Tree of the that script to a json file When I try to read this output json file and parse it as json using nodejs I get the following error (although the json file looks like valid json when i open it in vscode )
undefined:1
��[
^
Unexpected token � in JSON at position 0