Using --trace-stack as argument to xidel

75 Views Asked by At

I'm getting an error from the following request

@ECHO OFF
"H:\Xidel\Xidel.exe" --input-format json-strict -s "H:\ICA\PRIV.JSON\JSON_FORMATTED\JPB113_SWAGGER.JSON" -e "count($json)" 1>NUL 2>"H:\A_MS_exe\json_format_results.txt"

The results shown in 'json_format_results.txt' are

Error:
jerr:JNDY0021: error at (tkCurlyBraceClose) in }
Possible backtrace:
$005384C6: perhaps Q{http://jsoniq.org/functions}object + 2054 ? but unlikely
$004360FA: perhaps ? ? but unlikely
$00436176: perhaps ? ? but unlikely
$00437DAF: perhaps ? ? but unlikely
$00435544: perhaps ? ? but unlikely
$00435090: perhaps ? ? but unlikely
$0043F2B0: perhaps ? ? but unlikely

Call xidel with --trace-stack to get an actual backtrace

If I change the request to

@ECHO OFF
"H:\Xidel\Xidel.exe" --trace-stack --input-format json-strict -s "H:\ICA\PRIV.JSON\JSON_FORMATTED\JPB113_SWAGGER.JSON" -e "count($json)" 1>NUL 2>"H:\A_MS_exe\json_format_results.txt"

(as I imagine it should be), I only get

Error: jerr:JNDY0021: error at  (tkCurlyBraceClose) in }

which is less than I would have expected (seeing as how trace is "supposed to be on"). What am I doing wrong with my call?

0

There are 0 best solutions below