9 std::map<std::string, std::string>
const &source_to_combined_keys,
11 for (
auto const &pair : source_to_combined_keys) {
12 auto it = json_source.
find(pair.first);
13 if (it != json_source.
end()) {
14 json_combined[pair.second] = *it;
iterator end()
Returns iterator to end of JSON object or JSON array.
iterator find(const std::string &name)
Return iterator to JSON object value with 'name'.
jsonParser & combine_json_options(std::map< std::string, std::string > const &source_to_combined_keys, jsonParser const &json_source, jsonParser &json_combined)
Copy from json_source to json_combined