Quantcast
Viewing all articles
Browse latest Browse all 4845

Commented Unassigned: How do I access data by name? [339]

How can I access data by name instead of having to do string processing? Attached please find my code to parse the json.

Comments: The code that I am particularly keen to clean up is at the final step: for (auto obj2Iter = arr1Iter->as_array().cbegin(); obj2Iter != arr1Iter->as_array().cend(); ++obj2Iter) { const string_t& currentValue2 = obj2Iter->serialize(); std::wcout << L", Value: " << currentValue2 << endl; } Here I am going through the columns, but can't seem to access them by name.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>