| 79 | return doc.object(); |
| 80 | } |
| 81 | QJsonArray requireArray(const QJsonDocument &doc, const QString &what) |
| 82 | { |
| 83 | if (!doc.isArray()) |
| 84 | { |
| 85 | throw JsonException(what + " is not an array"); |
| 86 | } |
| 87 | return doc.array(); |
| 88 | } |
| 89 | |
| 90 | void writeString(QJsonObject &to, const QString &key, const QString &value) |
| 91 | { |
no test coverage detected