GitHub - coding-cpp/json: Simple JSON library for modern C++
Repository navigation
jsonPublic
About
Simple JSON library for modern C++
Topics
cpp json jsoncppResources
Readme MIT license Activity Custom propertiesStars
0 starsWatchers
1 watchingForks
0 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
29 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| assets | assets | ||
| example | example | ||
| include/ json | include/ json | ||
| lib | lib | ||
| src | src | ||
| .gitignore | .gitignore | ||
| .gitmodules | .gitmodules | ||
| CMakeLists.txt | CMakeLists.txt | ||
| LICENSE | LICENSE | ||
| README.md | README.md | ||
Repository files navigation
JSON
Simple JSON library for modern C++ with no dependencies. A few features include:
- 📜 Parsing JSON from a string or file
- 📝 Writing JSON to a string or file
- 🔑 Accessing JSON values by key or index
- 🔄 Iterating over JSON objects and arrays
- ✏️ Modifying JSON objects and arrays
- 🎨 Pretty printing JSON
- All with a simple and intuitive API 😊
Usage 💻
- Make sure you have the gnu g++ compiler installed on your system. You can install it by running the following command:
sudo apt install g++ build-essential
- Clone the repository:
git clone --recurse-submodules git@github.com:coding-cpp/json.git
- Build the project 🔨
cd json mkdir build && cd build cmake .. make
- Run the example
./json
Example 🛠️
You can find an example of how to use the library in the example directory.
About
Simple JSON library for modern C++