
json等通用文件格式
singing1001
码农
展开
-
cjson 构造
cJSON *pJsonTop = = cJSON_CreateObject();;/*json configuration, using to read and write config file */ if(pAlertConfStatic->ValidBoxRatio != 0.f) { cJSON *pJsonSubcp = cJSON_Cr...原创 2020-02-26 14:35:12 · 209 阅读 · 0 评论 -
cjson 读写文件
/* * @file: alert_config.c * @brief: * @version: 0.0 * @author: * @date: 2019/11/20 */ /****************************************************************************** @note Copyright 20...原创 2020-02-25 11:20:45 · 2599 阅读 · 0 评论 -
CharReaderBuilder---json从字符串中解析出json数据
#include <iostream> #include <string> #include <fstream> #include <json.h> using namespace std; string mgv_cfg_json = R"( { "or_bin": { "s_m_package_path": "./m_...原创 2019-10-18 12:04:53 · 1730 阅读 · 0 评论 -
json文件写入
int write_landmark_to_proto(fstream& fout, std::string data_id, MGFLandmarkMap *landmarks, size_t faceNum) { Json::Value root; root["data_id"] = data_id; /*for (size_t i = 0; i < l...原创 2019-07-18 10:29:39 · 660 阅读 · 0 评论