MCPcopy Create free account
hub / github.com/LUX-Core/lux / read_json

Function read_json

src/test/script_tests.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50string FormatScriptFlags(unsigned int flags);
51
52UniValue
53read_json(const std::string& jsondata)
54{
55 UniValue v;
56
57 if (!v.read(jsondata) || !v.isArray())
58 {
59 BOOST_ERROR("Parse error.");
60 return UniValue(UniValue::VARR);
61 }
62 return v.get_array();
63}
64
65struct ScriptErrorDesc
66{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

isArrayMethod · 0.80
UniValueClass · 0.50
readMethod · 0.45

Tested by

no test coverage detected