(Using current latest TCMD on Win10 x64) I'm reading variables from a JSON file with
This works just fine. If the element doesn't exist TCC writes to the console
However, I'm unable to suppress this error message - there is to /q for the SET command, and SET ... >nul 2>nul doesn't seem to work on this particular messages (probably from whatever-library TCC uses to manage JSON?).
The help file stats that there are numeric JSON errors (like 10233 for "Invalid XPath"), but I don't see any variable like %_JSONERROR to get them either.
Any hints on how to quiet these JSON error messages, or at least set the variable in a way there's no output to the current console? Thanks!
Code:
SET variable=%@JSONXPATH[/json/test/[1]/element]
This works just fine. If the element doesn't exist TCC writes to the console
Code:
Invalid XPath. "/json/test/[1]/element"
However, I'm unable to suppress this error message - there is to /q for the SET command, and SET ... >nul 2>nul doesn't seem to work on this particular messages (probably from whatever-library TCC uses to manage JSON?).
The help file stats that there are numeric JSON errors (like 10233 for "Invalid XPath"), but I don't see any variable like %_JSONERROR to get them either.
Any hints on how to quiet these JSON error messages, or at least set the variable in a way there's no output to the current console? Thanks!