| 94 | return doc.object(); |
| 95 | } |
| 96 | QJsonArray requireArray(const QJsonDocument& doc, const QString& what) |
| 97 | { |
| 98 | if (!doc.isArray()) { |
| 99 | throw JsonException(what + " is not an array"); |
| 100 | } |
| 101 | return doc.array(); |
| 102 | } |
| 103 | |
| 104 | void writeString(QJsonObject& to, const QString& key, const QString& value) |
| 105 | { |
no test coverage detected