Skip to content

panther99/jsonpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonpp

Simple JSON parser written in C++

Building

Whatever your platform is, make sure you have these things first:

  • CMake
  • vcpkg
  • VCPKG_ROOT environment variable pointing to the directory where vcpkg is bootstrapped

Windows

  • 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.

Linux

  • 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 as libfmt-dev)

After that you can just execute build.sh and executable will be built in build directory.

Credits

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.

License

MIT

About

Simple JSON parser in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages