| 60 | { |
| 61 | |
| 62 | bool extractStringMap(NL::json& node, StringMap& map) |
| 63 | { |
| 64 | if (!node.is_object()) |
| 65 | return false; |
| 66 | for (auto& [key, val] : node.items()) |
| 67 | { |
| 68 | if (val.is_string()) |
| 69 | map.insert({key, val}); |
| 70 | else |
| 71 | return false; |
| 72 | } |
| 73 | return true; |
| 74 | } |
| 75 | |
| 76 | } // unnamed namespace |
| 77 |
no test coverage detected