| 48 | } |
| 49 | |
| 50 | std::string get_object_string_key(json_value *root, const std::string& key) |
| 51 | { |
| 52 | json_value *val = get_object_key(root, key); |
| 53 | |
| 54 | if (!val) return ""; |
| 55 | |
| 56 | if (val->type == json_string) { |
| 57 | return val->u.string.ptr; |
| 58 | } |
| 59 | return ""; |
| 60 | } |
| 61 | |
| 62 | std::string get_object_string(json_value *val) |
| 63 | { |
no test coverage detected