Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qjsonwriter_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:header-decls-only
4
5#ifndef QJSONWRITER_P_H
6#define QJSONWRITER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/private/qglobal_p.h>
20#include <qjsonvalue.h>
21
23
24namespace QJsonPrivate
25{
26
27class Writer
28{
29public:
30 static void objectToJson(const QCborContainerPrivate *o, QByteArray &json, int indent, bool compact = false);
31 static void arrayToJson(const QCborContainerPrivate *a, QByteArray &json, int indent, bool compact = false);
32 static void valueToJson(const QCborValue &v, QByteArray &json, int indent, bool compact = false);
33};
34
35}
36
37QT_END_NAMESPACE
38
39#endif
\inmodule QtCore\reentrant
static void valueToJson(const QCborValue &v, QByteArray &json, int indent, bool compact=false)
static void objectToJson(const QCborContainerPrivate *o, QByteArray &json, int indent, bool compact=false)
static void arrayToJson(const QCborContainerPrivate *a, QByteArray &json, int indent, bool compact=false)
Combined button and popup list for selecting options.
bool comparesEqual(const QJsonArray &lhs, const QJsonValue &rhs)
QDataStream & operator>>(QDataStream &stream, QJsonArray &array)
bool comparesEqual(const QJsonArray &lhs, const QJsonArray &rhs)
size_t qHash(const QJsonArray &array, size_t seed)