------------------------------------------------------------------------------
| 30 | |
| 31 | //------------------------------------------------------------------------------ |
| 32 | bool GetIntValue(const nlohmann::json& root, const std::string& key, int& value) |
| 33 | { |
| 34 | auto it = root.find(key); |
| 35 | if (it == root.end() || !it.value().is_number_integer()) |
| 36 | { |
| 37 | return false; |
| 38 | } |
| 39 | value = it.value(); |
| 40 | return true; |
| 41 | } |
| 42 | |
| 43 | //------------------------------------------------------------------------------ |
| 44 | bool GetUIntValue(const nlohmann::json& root, const std::string& key, unsigned int& value) |
no test coverage detected