Modern C++ JSON nlohmann::json 使用详解

git repo:https://github.com/nlohmann/json

nlohmann::json只需要一个头文件json.hpp, 不需要编译成lib, 直接放到项目中即可使用

下载json.hpp

在右侧找到release
Modern C++ JSON nlohmann::json 使用详解_第1张图片
点击进去后,下载json.hpp即可
Modern C++ JSON nlohmann::json 使用详解_第2张图片

代码示例

例如下面代码

/*

modern c++ json test

*/

#include <

你可能感兴趣的:(C++,开发技巧总结,c++,json,开发语言)