| 272 | // For convenience, wraps get() in a try/catch and returns false UNLESS the path existed and was a compatible type. |
| 273 | template <typename T> |
| 274 | bool tryGet(const std::string path, T& out, bool split = true) { |
| 275 | try { |
| 276 | return get(path, out, split); |
| 277 | } catch (...) { |
| 278 | } |
| 279 | return false; |
| 280 | } |
| 281 | |
| 282 | const json_spirit::mValue& at(const std::string path, bool split = true) { |
| 283 | if (has(path, split)) |
no test coverage detected