Simple JSON parser written in C++
Whatever your platform is, make sure you have these things first:
- Make sure you have C++ build tools (available with Visual Studio).
- Install fmt package with vcpkg (
vcpkg install fmt
)
After that you can just execute build.bat
and executable will be built in build/Debug
directory.
- Make sure you have C++ compiler installed (if you have Ubuntu it should be available out of the box; if you're using g++ make sure it's at least version 6 or later)
- Install fmt package with either vcpkg (
vcpkg install fmt
) or via package manager for your distribution (in Ubuntu, it's available in universe repository aslibfmt-dev
)
After that you can just execute build.sh
and executable will be built in build
directory.
The code is inspired by the Rapptz's jsonpp with certain modifications; I avoided using templates (since I'm still not well versed with them) and deletion mechanism has been replaced with the usage of shared pointers for objects, arrays and strings. Also, this one supports single-line comments before the root node ends.
MIT