Ubuntu18.04安装使用jsoncpp库

调用百度的API时为C++ SDK配置jsoncpp依赖,可用于C++解析json文件

1
sudo apt-get install libjsoncpp-dev

库的头文件安装在/usr/include/jsoncpp中, 库API文档默认在/usr/share/doc/libjsoncpp-dev/jsoncpp-api-html/目录下

1
#include <jsoncpp/json/json.h>