diff options
Diffstat (limited to 'test_JsonBox.cc')
-rw-r--r-- | test_JsonBox.cc | 24 |
1 files changed, 24 insertions, 0 deletions
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 <iostream> +#include <string> + +/* + * 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; +} + |