From 625269764ebbe8d0b566e6ef5fc26a6bccd4181d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 13 Jul 2014 14:04:45 +0200 Subject: init --- test_JsonBox.cc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test_JsonBox.cc (limited to 'test_JsonBox.cc') diff --git a/test_JsonBox.cc b/test_JsonBox.cc new file mode 100644 index 0000000..e1b22c4 --- /dev/null +++ b/test_JsonBox.cc @@ -0,0 +1,24 @@ +#include +#include + +/* + * https://github.com/anhero/JsonBox + * + */ +#include "JsonBox/include/JsonBox.h" + +using namespace std; + + +int +main(int argc, char** argv) +{ + JsonBox::Value v; + v.loadFromFile(argv[1]); + JsonBox::Value w = v["edges"].getArray().back(); + string s = w["rule"].getString(); + cerr << s.substr(1,4) << endl; + + return 0; +} + -- cgit v1.2.3