用几行代码转化,不晓得是那个json转化为结构体
BK_Pare_display asd, asd1;
nlohmann::json j;
std::string str;
std::ifstream jfile("D:\\项目附件\\josn转换\\josn转换\\josn项目.txt");
jfile >> j;
asd = j;
asd1 = asd;
asd1.ActPosX = 1;
nlohmann::json js1 = asd1;
std::string sendstr = js1.dump(); //转换成字符串
std::cout << sendstr;
printf("%s",sendstr);
};