summaryrefslogtreecommitdiffstats
path: root/logic/MMCJson.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/MMCJson.h')
-rw-r--r--logic/MMCJson.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/MMCJson.h b/logic/MMCJson.h
index 3e7342b5..b0d898fc 100644
--- a/logic/MMCJson.h
+++ b/logic/MMCJson.h
@@ -7,6 +7,7 @@
#pragma once
#include <QJsonValue>
#include <QJsonObject>
+#include <QJsonDocument>
#include <QJsonArray>
#include "MMCError.h"
@@ -29,6 +30,9 @@ QJsonValue ensureExists(QJsonValue val, const QString what = "value");
/// make sure the value is converted into an object. throw otherwise.
QJsonObject ensureObject(const QJsonValue val, const QString what = "value");
+/// make sure the document is converted into an object. throw otherwise.
+QJsonObject ensureObject(const QJsonDocument val, const QString what = "value");
+
/// make sure the value is converted into an array. throw otherwise.
QJsonArray ensureArray(const QJsonValue val, QString what = "value");