summaryrefslogtreecommitdiff
path: root/src/test_JsonBox.cc
blob: e1b22c490ace0bb8481f2d74965ebfa81e63ac11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}