I have downloaded the nlohmann library in a zip format and I need to understand where to unzip it. I know it's a header only library. Do I unzip it under
/usr/include
or
/usr/include/c++/8
So the directory will look like:
/usr/include/nholmann/include
or
/usr/include/c++/8/nholmann/include
So there are many JSON libraries out there. I would recommend you to use this one (requries C++11):
https://github.com/nlohmann/json
It is header only so no installation is requried. It has MIT Licences which is good even for commercial use. Also it is widely used so if you have any trouble it will be easy to find some resources on internet. On stackoverflow look for tag nlohmann-json
To use it you would have to add
#include <nlohmann/json.hpp>
For more info check github integration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With