#include "libs/json.h"
using json = nlohmann::json;
std::ifstream file("config/protodata.json");
if (!file.is_open())
{
exit(1);
}
auto config_json = json::parse(file);
std::string name = config_json["name"];
printf("get the json name: %s\n", name.c_str());










网友评论