1 (edited by Popov 2025-01-12 11:38:08)

Topic: Expected property name or '}' in JSON at position

Hello Popov, Thanks for the update. I have a script that I created to fit my needs, and it was working perfectly until this update. Can you please check what the error is?

Script:

set symbol=%1
set period=%2

IF "%symbol%" == "" EXIT
IF "%period%" == "" EXIT

TITLE OOS Workflow %symbol% %period%

REM Fetch forex data

node .\bin\fetch.js                         ^
--fx-rates   true                             ^
--symbol  %symbol%                         ^
--period  %period%                         ^
--max-data-bars 200000                     ^
--time-zone  0
...

Error:

""""Expected property name or '}' in JSON at position 1 (line 1 column 2)"""""

Re: Expected property name or '}' in JSON at position

Your script is correct.

The bug was in the forex-rates file fetched from the server.

I fixed the problem with the Forex rates so you can use Ex. Gen. as usual.

If you want to test it, fetch the fx rates alone.

node bin/fetch.js --fx-rates true

Re: Expected property name or '}' in JSON at position

Working like a charm, thank you.
Express generator, what a powerful lovely tool, I can't say thank you enough.