| 248 | } |
| 249 | |
| 250 | JsonObjectConstPtr Json::objectPtr() const { |
| 251 | if (type() != Type::Object) |
| 252 | throw JsonException::format("Improper conversion to JsonObject from {}", typeName()); |
| 253 | return m_data.get<JsonObjectConstPtr>(); |
| 254 | } |
| 255 | |
| 256 | Json::IteratorWrapper<JsonArray> Json::iterateArray() const { |
| 257 | return IteratorWrapper<JsonArray>{arrayPtr()}; |
no test coverage detected