Skip to content

SacBase/JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAC JSON Module

About

This is a Sac module that wraps around some of the cJSON library.

Supported Functionality

  • Creation of:
    • JSON objects
    • JSON arrays
  • Booleans
    • Insertion into JSON object
    • Insertion into JSON array
    • Replacing elements in JSON arrays with Booleans
  • Numbers (int, float, double)
    • Insertion into JSON object
    • Insertion into JSON array
    • Replacing elements in JSON arrays with Numbers
  • Strings
    • Insertion into JSON object
    • Insertion into JSON array
    • Replacing elements in JSON arrays with Strings
  • Arrays
    • Insertion into JSON object
    • Insertion of additional elements after insertion by means of changing focus
    • Replacing elements in JSON arrays with JSON arrays
  • Objects
    • Insertion into JSON object
    • Insertion of additional elements after insertion by means of changing focus
    • Replacing elements in JSON arrays with JSON objects
  • Serialization to stdout of:
    • JSON objects
    • JSON arrays
  • Shifting focus:
    • to child nodes
    • to the root JSON object

Build Instructions

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:

git submodules init
git submodules update

When submodules are in order follow the following build instructions to build the library:

mkdir build
cd build
cmake ..
make -j4

Releases

No releases published