removed unused docs

and unused db entry
This commit is contained in:
signedav 2018-09-12 14:36:36 +02:00 committed by Nyall Dawson
parent 75b9c66c99
commit 04d770d613
3 changed files with 2 additions and 7 deletions

View File

@ -24,7 +24,6 @@
#include <QIcon>
#include <QLocale>
#include <QJsonDocument>
#include <QJsonObject>
/***************************************************************************
* This class is considered CRITICAL and any change MUST be accompanied with

View File

@ -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;
}

View File

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