| 230 | } |
| 231 | |
| 232 | JsonObject Json::toObject() const { |
| 233 | if (type() != Type::Object) |
| 234 | throw JsonException::format("Improper conversion to JsonObject from {}", typeName()); |
| 235 | return *m_data.get<JsonObjectConstPtr>(); |
| 236 | } |
| 237 | |
| 238 | StringConstPtr Json::stringPtr() const { |
| 239 | if (type() != Type::String) |