Modern C++ JSON nlohmann::json 使用详解
生活随笔
收集整理的這篇文章主要介紹了
Modern C++ JSON nlohmann::json 使用详解
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
git repo:https://github.com/nlohmann/json
nlohmann::json只需要一個(gè)頭文件json.hpp, 不需要編譯成lib, 直接放到項(xiàng)目中即可使用
下載json.hpp
在右側(cè)找到release
點(diǎn)擊進(jìn)去后,下載json.hpp即可
代碼示例
例如下面代碼
/*modern c++ json test*/#include <iostream> #include "json.hpp"總結(jié)
以上是生活随笔為你收集整理的Modern C++ JSON nlohmann::json 使用详解的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 洛谷P1569 [USACO11FEB]
- 下一篇: s3c2440移植MQTT