From 9a0859212de4d1304f9392fe910921227421c8c3 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 16 Aug 2014 21:25:52 +0100 Subject: cleanup --- test_jsoncpp.cc | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 test_jsoncpp.cc (limited to 'test_jsoncpp.cc') 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 -#include -#include - -/* - * 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(ifs)), - (istreambuf_iterator())); - - 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; -} - -- cgit v1.2.3