【发布时间】:2017-02-24 02:29:18
【问题描述】:
例如,使用 nlohmann::json,我可以做到
map<string, vector<int>> m = { {"a", {1, 2}}, {"b", {2, 3}} };
json j = m;
但我做不到
m = j;
有什么方法可以使用 nlohmann::json 将 json 对象转换为地图?
【问题讨论】:
-
我建议您在下面投票并接受@Fred 的回答。 (如果你不坚持你的问题,你会被否决!)
标签: c++ json dictionary nlohmann-json