summaryrefslogtreecommitdiff
path: root/test_jsoncpp.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-16 21:25:52 +0100
committerPatrick Simianer <p@simianer.de>2014-08-16 21:25:52 +0100
commit9a0859212de4d1304f9392fe910921227421c8c3 (patch)
tree1b1276312c83415d7d7d3838ce0347441b71951a /test_jsoncpp.cc
parent3ba77e3474e39d7970784812f6851a726572f7c7 (diff)
cleanup
Diffstat (limited to 'test_jsoncpp.cc')
-rw-r--r--test_jsoncpp.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/test_jsoncpp.cc b/test_jsoncpp.cc
deleted file mode 100644
index ab3bd0c..0000000
--- a/test_jsoncpp.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <iostream>
-#include <fstream>
-#include <string>
-
-/*
- * https://github.com/open-source-parsers/jsoncpp
- *
- */
-#include "jsoncpp/include/json/json.h"
-
-using namespace std;
-
-
-int
-main(int argc, char** argv)
-{
- ifstream ifs(argv[1]);
- string json_str((istreambuf_iterator<char>(ifs)),
- (istreambuf_iterator<char>()));
-
- Json::Value v;
- Json::Reader reader;
- reader.parse(json_str, v);
- Json::Value last_edge = v["edges"][v["edges"].size()-1];
- cerr << last_edge["rule"].asString().substr(1, 4) << endl;
-
- return 0;
-}
-