1
// qjsondocument.sip generated by MetaSIP on Fri Sep 12 22:59:00 2014
3
// This file is part of the QtCore Python extension module.
5
// Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com>
7
// This file is part of PyQt5.
9
// This file may be used under the terms of the GNU General Public License
10
// version 3.0 as published by the Free Software Foundation and appearing in
11
// the file LICENSE included in the packaging of this file. Please review the
12
// following information to ensure the GNU General Public License version 3.0
13
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
15
// If you do not wish to use this file under the terms of the GPL version 3.0
16
// then you may purchase a commercial license. For more information contact
17
// info@riverbankcomputing.com.
19
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23
struct QJsonParseError
26
#include <qjsondocument.h>
35
MissingValueSeparator,
39
IllegalEscapeSequence,
47
QString errorString() const;
49
QJsonParseError::ParseError error;
55
#include <qjsondocument.h>
60
explicit QJsonDocument(const QJsonObject &object);
61
explicit QJsonDocument(const QJsonArray &array);
62
QJsonDocument(const QJsonDocument &other);
71
static QJsonDocument fromRawData(const char *data /Encoding="None"/, int size, QJsonDocument::DataValidation validation = QJsonDocument::Validate);
72
const char *rawData(int *size /Out/) const /Encoding="None"/;
73
static QJsonDocument fromBinaryData(const QByteArray &data, QJsonDocument::DataValidation validation = QJsonDocument::Validate);
74
QByteArray toBinaryData() const;
75
static QJsonDocument fromVariant(const QVariant &variant);
76
QVariant toVariant() const;
84
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error = 0);
85
QByteArray toJson() const;
86
QByteArray toJson(QJsonDocument::JsonFormat format) const;
89
bool isObject() const;
90
QJsonObject object() const;
91
QJsonArray array() const;
92
void setObject(const QJsonObject &object);
93
void setArray(const QJsonArray &array);
94
bool operator==(const QJsonDocument &other) const;
95
bool operator!=(const QJsonDocument &other) const;