-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
36 lines (22 loc) · 1.08 KB
/
README
File metadata and controls
36 lines (22 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
The program JSonObjParser.cc takes a JSON file as input and changes it into a JSON object. The program JSonObj.cc provides methods to interact with the JSON object to get the specific values and vectors.
We are using boost_1_44_0.
To use this JSON parser you will need to have the g++ and boost_1_44_0 installed on your system.
building system:
mkdir build /** create a build directory */
cd build
cmake .. /** prepration for make */
make /** build the system */
make install /** create install directory */
The source code is at install/src.
The test code is at install/example.
The ingredients are:
JSonObjParser.h (a header file that will be included in your program)
JSonObjParser.cc (actual parsing source code)
JSonObj.h (header file that will be included in your program)
JSonObj.cc (three functions:
T getValue<T>(keyName);
std::vector<T> getVector<T>(keyName);
std::string getType(keyName);
)
Sample command of compilation:
g++ yourFile.cc -I/(location of install dir)/install/include/ -L/(location of install dir)/install/lib/ -ljsoncpp