Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jsoncpp 库来解析和创建 json 结构。是否可以转换以下语法
jsonText["name1"]["name2"] = "Testmessage";
变成这样的东西
jsonText["name1.name2"] = "Testmessage";
以便
jsonText["name1"]["name2"] = jsonText["name1.name2"];
问候