Json to std::unordered_map #3689
-
Hello. I need my json to look like this |
Beta Was this translation helpful? Give feedback.
Answered by
falbrechtskirchinger
Aug 7, 2022
Replies: 1 comment
-
auto j = json::parse(R"("{ "Staff List": { "Staff": ["NameHere" , 29 ] } }")"); You can iterate through it using https://json.nlohmann.me/api/basic_json/items/ and populate a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mPlauts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can iterate through it using https://json.nlohmann.me/api/basic_json/items/ and populate a
std::unordered_map
.