mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
removed unused docs
and unused db entry
This commit is contained in:
parent
75b9c66c99
commit
04d770d613
@ -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;
|
||||
}
|
||||
|
||||
|
3
tests/testdata/provider/testdata_pg_json.sql
vendored
3
tests/testdata/provider/testdata_pg_json.sql
vendored
@ -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}');
|
||||
|
Loading…
x
Reference in New Issue
Block a user