Skip to content
Browse files
removed unused docs
and unused db entry
  • Loading branch information
signedav authored and nyalldawson committed Sep 14, 2018
1 parent 75b9c66 commit 04d770d6132425149b0d79692797526fc1b700ab
@@ -24,7 +24,6 @@
#include <QIcon>
#include <QLocale>
#include <QJsonDocument>
#include <QJsonObject>

* This class is considered CRITICAL and any change MUST be accompanied with
@@ -4221,11 +4221,8 @@ static QVariant parseJson( const QString &txt )
QVariant result;
QJsonDocument jsonResponse = QJsonDocument::fromJson( txt.toUtf8() );
//it's null when no json format
//it's null if no json format
result = jsonResponse.toVariant();

//TODO json/jsonb convert toVariantMap from QJsonObject in case it's a map etc.
//we can check there with jsonResponse.isArray if it's an array etc.
return result;

@@ -11,5 +11,4 @@ CREATE TABLE qgis_test.json
INSERT INTO qgis_test.json(jvalue, jbvalue)
('[1,2,3]', '[4,5,6]'),
('{"a":1,"b":2}', '{"c":4,"d":5}'),
('123', '456');
('{"a":1,"b":2}', '{"c":4,"d":5}');

0 comments on commit 04d770d

Please sign in to comment.