| 100 | return doc.object(); |
| 101 | } |
| 102 | QJsonArray requireArray(const QJsonDocument &doc, const QString &what) |
| 103 | { |
| 104 | if (!doc.isArray()) |
| 105 | { |
| 106 | throw JsonException(what + " is not an array"); |
| 107 | } |
| 108 | return doc.array(); |
| 109 | } |
| 110 | |
| 111 | void writeString(QJsonObject &to, const QString &key, const QString &value) |
| 112 | { |
no test coverage detected