Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1682

How to suppress JSON error messages?

$
0
0
(Using current latest TCMD on Win10 x64) I'm reading variables from a JSON file with
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...

Read more

Viewing all articles
Browse latest Browse all 1682

Trending Articles