| 218 | } |
| 219 | |
| 220 | String Json::toString() const { |
| 221 | if (type() != Type::String) |
| 222 | throw JsonException(strf("Cannot convert from {} to string", typeName())); |
| 223 | return *m_data.get<StringConstPtr>(); |
| 224 | } |
| 225 | |
| 226 | JsonArray Json::toArray() const { |
| 227 | if (type() != Type::Array) |
no test coverage detected