| 241 | } |
| 242 | |
| 243 | void JsonReader::write_map_to_array(const std::vector<std::string> &keys, const std::string fkey, const std::string skey, |
| 244 | const std::map<std::string, std::string> &value) |
| 245 | { |
| 246 | json::json_pointer ptr = json::json_pointer(to_json_pointer(keys)); |
| 247 | json array = json::array(); |
| 248 | for (auto iter : value) |
| 249 | { |
| 250 | json item; |
| 251 | item[fkey] = iter.first; |
| 252 | item[skey] = iter.second; |
| 253 | array.push_back(item); |
| 254 | } |
| 255 | j[ptr] = array; |
| 256 | } |
| 257 | |
| 258 | size_t JsonReader::get_array_size(const std::vector<std::string> &keys) |
| 259 | { |
no test coverage detected