| 35 | } |
| 36 | |
| 37 | json_value* get_object_key(json_value *root, const std::string& key) |
| 38 | { |
| 39 | assert(root->type == json_object); |
| 40 | |
| 41 | for (auto& it : jsonObjectIterator(root)) |
| 42 | { |
| 43 | if (key == it.name) { |
| 44 | return it.value; |
| 45 | } |
| 46 | } |
| 47 | return nullptr; |
| 48 | } |
| 49 | |
| 50 | std::string get_object_string_key(json_value *root, const std::string& key) |
| 51 | { |
no test coverage detected