|
1 | | -# SAC JSON Module |
2 | | -## About |
3 | | -This is a Sac module that wraps around some of the [cJSON](https://github.com/DaveGamble/cJSON) library. |
| 1 | +# SaC File Formats |
4 | 2 |
|
5 | | -## Supported Functionality |
6 | | -- Creation of: |
7 | | - - JSON objects |
8 | | - - JSON arrays |
9 | | -- Booleans |
10 | | - - Insertion into JSON object |
11 | | - - Insertion into JSON array |
12 | | - - Replacing elements in JSON arrays with Booleans |
13 | | -- Numbers (int, float, double) |
14 | | - - Insertion into JSON object |
15 | | - - Insertion into JSON array |
16 | | - - Replacing elements in JSON arrays with Numbers |
17 | | -- Strings |
18 | | - - Insertion into JSON object |
19 | | - - Insertion into JSON array |
20 | | - - Replacing elements in JSON arrays with Strings |
21 | | -- Arrays |
22 | | - - Insertion into JSON object |
23 | | - - Insertion of additional elements after insertion by means of changing focus |
24 | | - - Replacing elements in JSON arrays with JSON arrays |
25 | | -- Objects |
26 | | - - Insertion into JSON object |
27 | | - - Insertion of additional elements after insertion by means of changing focus |
28 | | - - Replacing elements in JSON arrays with JSON objects |
29 | | -- Serialization to stdout of: |
30 | | - - JSON objects |
31 | | - - JSON arrays |
32 | | -- Shifting focus: |
33 | | - - to child nodes |
34 | | - - to the root JSON object |
| 3 | +The project uses `cmake-common`. |
| 4 | +Upon cloning this repo it is important initialize submodules. |
35 | 5 |
|
36 | | -## Build Instructions |
37 | | -You will need to have installed sac2c and have a copy of the Stdlib installed as well. It is also assumed that the submodules are initialized and updated correctly either via cloning with `--recurse-submodules` or as follows: |
38 | 6 | ```bash |
39 | | -git submodules init |
40 | | -git submodules update |
41 | | -``` |
42 | | - |
43 | | -When submodules are in order follow the following build instructions to build the library: |
44 | | -```bash |
45 | | -mkdir build |
46 | | -cd build |
47 | | -cmake .. |
48 | | -make -j4 |
| 7 | +git submodule update --init --recursive |
| 8 | +make |
49 | 9 | ``` |
0 commit comments