this library is intended to be used for parsing streams of Json objects
A C++ library for parsing JSON data, built using a JuaLang sys approach.
- CMake (version 3.10 or higher recommended)
- A C++ compiler supporting C++17 (e.g., GCC, Clang)
- Make (or another build tool compatible with CMake generators)
This project uses CMake to manage the build process.
-
Clone the repository (if you haven't already):
git clone https://github.com/SkillfulElectro/EMJson.git cd EMJson -
Create a build directory: It's standard practice to perform builds outside the source directory.
mkdir build
-
Navigate into the build directory:
cd build -
Run CMake to configure the project: This command points CMake to the
CMakeLists.txtfile in the parent directory.cmake ..
-
Compile the project: This will build both the
libemjson.soshared library and theemjson_testexample executable.make
After a successful build, the example executable emjson_test will be located in the build directory.
-
Make sure you are in the
builddirectory:cd /path/to/EMJson/build -
Run the executable:
./emjson_test
This will execute the code found in
main.cpp, which likely demonstrates how to use the EMJson library.
The build process generates the following key files in the build directory:
libemjson.so: The shared library file. You can link against this library in other C++ projects.emjson_test: The example executable.