MCPcopy Create free account
hub / github.com/ElementsProject/elements / main

Function main

src/univalue/test/test_json.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace std;
12
13int main (int argc, char *argv[])
14{
15 UniValue val;
16 if (val.read(string(istreambuf_iterator<char>(cin),
17 istreambuf_iterator<char>()))) {
18 cout << val.write(1 /* prettyIndent */, 4 /* indentLevel */) << endl;
19 return 0;
20 } else {
21 cerr << "JSON Parse Error." << endl;
22 return 1;
23 }
24}

Callers

nothing calls this directly

Calls 2

readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected