summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messageengine.cpp')
-rw-r--r--messageengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/messageengine.cpp b/messageengine.cpp
index d4413e5..d2644e8 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -85,6 +85,7 @@ void MessageEngine::onDisconnected()
void MessageEngine::onTextMessageReceived(QString jsonStr)
{
+ jsonStr = jsonStr.simplified();
QJsonDocument jdoc(QJsonDocument::fromJson(jsonStr.toUtf8()));
if (jdoc.isEmpty()) {
qWarning() << "Received invalid JSON: empty appfw message";