I'm using nlohman::json.
It's awesome, but is there any way to unpack:
{
"my_list" : [1,2,3]
}
into a std:vector<int>
?
I can't find any mention in the docs, and std::vector<int> v = j["my_list"];
fails, as does j["my_list"].get<std::vector<int>>()
.
Crosslinking to https://github.com/nlohmann/json/issues/1460