-
std::string s = R"({"first":1,"second":2,"fourth":3,"fifth":4})";
json j = json::parse(s); and I want to retrieve all keys from object and treat them as a vector which function should I use? |
Beta Was this translation helpful? Give feedback.
Answered by
recsater
Mar 8, 2024
Replies: 1 comment
-
for (const auto& kv: j.object_range()) {
loge("{}", kv.key());
} Thank you guys 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
recsater
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you guys 👍