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.
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.