| 242 | } |
| 243 | |
| 244 | JsonArrayConstPtr Json::arrayPtr() const { |
| 245 | if (type() != Type::Array) |
| 246 | throw JsonException::format("Improper conversion to JsonArray from {}", typeName()); |
| 247 | return m_data.get<JsonArrayConstPtr>(); |
| 248 | } |
| 249 | |
| 250 | JsonObjectConstPtr Json::objectPtr() const { |
| 251 | if (type() != Type::Object) |
no test coverage detected