RunCommandParseJSON

Execute a command which returns JSON, and parse the result.

Synopsis

Declared in <common/run_command.h>

UniValue
RunCommandParseJSON(
    std::vector<std::string> const& cmd_args,
    std::string const& str_std_in = "");

Return Value

parsed JSON

Parameters

NameDescription
cmd_argsThe command and arguments
str_std_instring to pass to stdin