swift
Loading...
Searching...
No Matches
Streaming operators for JSON

Functions

template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonValue const & operator>> (const QJsonValue &json, ENUM &value)
 Specialized JSON deserialization for enum.
template<class ENUM>
const QJsonValue & operator>> (const QJsonValue &json, QFlags< ENUM > &value)
 Specialized JSON deserialization for QFlags enum.
template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonValueRef operator>> (QJsonValueRef json, ENUM &value)
 Specialized JSON deserialization for enum.
template<class ENUM>
QJsonValueRef operator>> (QJsonValueRef json, QFlags< ENUM > &value)
 Specialized JSON deserialization for QFlags enum.
template<class FIRST, class SECOND>
QJsonValueRef operator>> (QJsonValueRef json, std::pair< FIRST, SECOND > &pair)
 Specialized JSON deserialization for pair.
template<class FIRST, class SECOND>
QJsonArray & operator<< (QJsonArray &json, const std::pair< FIRST, SECOND > &pair)
 Specialized JSON serialization for pair.
QJsonObject & swift::misc::json::appendJsonObject (QJsonObject &target, const QJsonObject &toBeAppended)
 Append to first JSON object (concatenate).
QJsonObject swift::misc::json::jsonObjectFromString (const QString &json, bool acceptCacheFormat=false)
 JSON Object from string.
QString swift::misc::json::stringFromJsonObject (const QJsonObject &jsonObject, QJsonDocument::JsonFormat format=QJsonDocument::Indented)
 JSON Object from string.
QJsonArray swift::misc::json::jsonArrayFromString (const QString &json)
 JSON Array from string.
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, int &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, qlonglong &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, qulonglong &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, uint &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, qint16 &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, QString &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, QStringList &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, std::string &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, double &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, bool &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, QDateTime &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, QPixmap &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT const QJsonValue & operator>> (const QJsonValue &json, QByteArray &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, int &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, qlonglong &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, qulonglong &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, uint &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, qint16 &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, QString &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, std::string &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, QStringList &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, double &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, bool &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, QDateTime &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, QPixmap &value)
 Streaming operators for QJsonValue (to value).
SWIFT_MISC_EXPORT QJsonValueRef operator>> (QJsonValueRef json, QByteArray &value)
 Streaming operators for QJsonValue (to value).
template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonObject & operator<< (QJsonObject &json, std::pair< QString, const ENUM & > value)
 Specialized JSON serialization for enum.
template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonObject & operator<< (QJsonObject &json, std::pair< swift::misc::CExplicitLatin1String, const ENUM & > value)
 Specialized JSON serialization for enum.
template<class ENUM>
QJsonObject & operator<< (QJsonObject &json, std::pair< QString, const QFlags< ENUM > & > value)
 Specialized JSON serialization for QFlags generated enum.
template<class ENUM>
QJsonObject & operator<< (QJsonObject &json, std::pair< swift::misc::CExplicitLatin1String, const QFlags< ENUM > & > value)
 Specialized JSON serialization for QFlags generated enum.
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const int value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const std::pair< QString, qint16 > &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const qlonglong value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const uint value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const qulonglong value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const QString &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const std::string &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const double value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const bool value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const QDateTime &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const QPixmap &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonArray & operator<< (QJsonArray &json, const QByteArray &value)
 Streaming operators for QJsonArray (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const int & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const qint16 & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const qlonglong & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const uint & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const qulonglong & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const QString & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const std::string & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const QStringList & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const double & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const bool & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const QDateTime & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const QPixmap & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const QByteArray & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const int & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const qint16 & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const qlonglong & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const uint & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const qulonglong & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const QString & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const std::string & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const QStringList & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const double & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const bool & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const QDateTime & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const QPixmap & > &value)
 Streaming operators for QJsonObject (from value).
SWIFT_MISC_EXPORT QJsonObject & operator<< (QJsonObject &json, const std::pair< swift::misc::CExplicitLatin1String, const QByteArray & > &value)
 Streaming operators for QJsonObject (from value).
QDataStream & operator<< (QDataStream &s, const std::string &v)
 Streaming operators for QDataStream.
QDataStream & operator>> (QDataStream &s, std::string &v)
 Streaming operators for QDataStream.

Detailed Description

Function Documentation

◆ appendJsonObject()

SWIFT_MISC_EXPORT QJsonObject & swift::misc::json::appendJsonObject ( QJsonObject & target,
const QJsonObject & toBeAppended )

Append to first JSON object (concatenate).

Definition at line 453 of file json.cpp.

◆ jsonArrayFromString()

SWIFT_MISC_EXPORT QJsonArray swift::misc::json::jsonArrayFromString ( const QString & json)

JSON Array from string.

Definition at line 443 of file json.cpp.

◆ jsonObjectFromString()

SWIFT_MISC_EXPORT QJsonObject swift::misc::json::jsonObjectFromString ( const QString & json,
bool acceptCacheFormat )

JSON Object from string.

Definition at line 419 of file json.cpp.

◆ operator<<() [1/43]

QDataStream & operator<< ( QDataStream & s,
const std::string & v )

Streaming operators for QDataStream.

Definition at line 747 of file json.cpp.

◆ operator<<() [2/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const bool value )

Streaming operators for QJsonArray (from value).

Definition at line 232 of file json.cpp.

◆ operator<<() [3/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const double value )

Streaming operators for QJsonArray (from value).

Definition at line 226 of file json.cpp.

◆ operator<<() [4/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const int value )

Streaming operators for QJsonArray (from value).

Definition at line 184 of file json.cpp.

◆ operator<<() [5/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const QByteArray & value )

Streaming operators for QJsonArray (from value).

Definition at line 251 of file json.cpp.

◆ operator<<() [6/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const QDateTime & value )

Streaming operators for QJsonArray (from value).

Definition at line 238 of file json.cpp.

◆ operator<<() [7/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const qlonglong value )

Streaming operators for QJsonArray (from value).

Definition at line 196 of file json.cpp.

◆ operator<<() [8/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const QPixmap & value )

Streaming operators for QJsonArray (from value).

Definition at line 244 of file json.cpp.

◆ operator<<() [9/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const QString & value )

Streaming operators for QJsonArray (from value).

Definition at line 214 of file json.cpp.

◆ operator<<() [10/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const qulonglong value )

Streaming operators for QJsonArray (from value).

Definition at line 208 of file json.cpp.

◆ operator<<() [11/43]

template<class FIRST, class SECOND>
QJsonArray & operator<< ( QJsonArray & json,
const std::pair< FIRST, SECOND > & pair )

Specialized JSON serialization for pair.

Definition at line 148 of file json.h.

◆ operator<<() [12/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const std::string & value )

Streaming operators for QJsonArray (from value).

Definition at line 220 of file json.cpp.

◆ operator<<() [13/43]

SWIFT_MISC_EXPORT QJsonArray & operator<< ( QJsonArray & json,
const uint value )

Streaming operators for QJsonArray (from value).

Definition at line 202 of file json.cpp.

◆ operator<<() [14/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const bool & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 312 of file json.cpp.

◆ operator<<() [15/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const double & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 306 of file json.cpp.

◆ operator<<() [16/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const int & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 258 of file json.cpp.

◆ operator<<() [17/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const QByteArray & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 331 of file json.cpp.

◆ operator<<() [18/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const QDateTime & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 318 of file json.cpp.

◆ operator<<() [19/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const qint16 & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 264 of file json.cpp.

◆ operator<<() [20/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const qlonglong & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 276 of file json.cpp.

◆ operator<<() [21/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const QPixmap & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 324 of file json.cpp.

◆ operator<<() [22/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const QString & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 288 of file json.cpp.

◆ operator<<() [23/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const QStringList & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 300 of file json.cpp.

◆ operator<<() [24/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const qulonglong & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 270 of file json.cpp.

◆ operator<<() [25/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const std::string & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 294 of file json.cpp.

◆ operator<<() [26/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< QString, const uint & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 282 of file json.cpp.

◆ operator<<() [27/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const bool & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 392 of file json.cpp.

◆ operator<<() [28/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const double & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 386 of file json.cpp.

◆ operator<<() [29/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const int & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 338 of file json.cpp.

◆ operator<<() [30/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const QByteArray & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 411 of file json.cpp.

◆ operator<<() [31/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const QDateTime & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 398 of file json.cpp.

◆ operator<<() [32/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const qint16 & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 344 of file json.cpp.

◆ operator<<() [33/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const qlonglong & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 356 of file json.cpp.

◆ operator<<() [34/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const QPixmap & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 404 of file json.cpp.

◆ operator<<() [35/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const QString & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 368 of file json.cpp.

◆ operator<<() [36/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const QStringList & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 380 of file json.cpp.

◆ operator<<() [37/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const qulonglong & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 350 of file json.cpp.

◆ operator<<() [38/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const std::string & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 374 of file json.cpp.

◆ operator<<() [39/43]

SWIFT_MISC_EXPORT QJsonObject & operator<< ( QJsonObject & json,
const std::pair< swift::misc::CExplicitLatin1String, const uint & > & value )

Streaming operators for QJsonObject (from value).

Definition at line 362 of file json.cpp.

◆ operator<<() [40/43]

template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonObject & operator<< ( QJsonObject & json,
std::pair< QString, const ENUM & > value )

Specialized JSON serialization for enum.

Remarks
needs to be in global namespace

Definition at line 69 of file json.h.

◆ operator<<() [41/43]

template<class ENUM>
QJsonObject & operator<< ( QJsonObject & json,
std::pair< QString, const QFlags< ENUM > & > value )

Specialized JSON serialization for QFlags generated enum.

Definition at line 87 of file json.h.

◆ operator<<() [42/43]

template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonObject & operator<< ( QJsonObject & json,
std::pair< swift::misc::CExplicitLatin1String, const ENUM & > value )

Specialized JSON serialization for enum.

Remarks
needs to be in global namespace

Definition at line 75 of file json.h.

◆ operator<<() [43/43]

template<class ENUM>
QJsonObject & operator<< ( QJsonObject & json,
std::pair< swift::misc::CExplicitLatin1String, const QFlags< ENUM > & > value )

Specialized JSON serialization for QFlags generated enum.

Definition at line 93 of file json.h.

◆ operator>>() [1/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
bool & value )

Streaming operators for QJsonValue (to value).

Definition at line 75 of file json.cpp.

◆ operator>>() [2/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
double & value )

Streaming operators for QJsonValue (to value).

Definition at line 69 of file json.cpp.

◆ operator>>() [3/32]

template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonValue const & operator>> ( const QJsonValue & json,
ENUM & value )

Specialized JSON deserialization for enum.

Definition at line 103 of file json.h.

◆ operator>>() [4/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
int & value )

Streaming operators for QJsonValue (to value).

Definition at line 18 of file json.cpp.

◆ operator>>() [5/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
QByteArray & value )

Streaming operators for QJsonValue (to value).

Definition at line 94 of file json.cpp.

◆ operator>>() [6/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
QDateTime & value )

Streaming operators for QJsonValue (to value).

Definition at line 81 of file json.cpp.

◆ operator>>() [7/32]

template<class ENUM>
const QJsonValue & operator>> ( const QJsonValue & json,
QFlags< ENUM > & value )

Specialized JSON deserialization for QFlags enum.

Definition at line 112 of file json.h.

◆ operator>>() [8/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
qint16 & value )

Streaming operators for QJsonValue (to value).

Definition at line 42 of file json.cpp.

◆ operator>>() [9/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
qlonglong & value )

Streaming operators for QJsonValue (to value).

Definition at line 24 of file json.cpp.

◆ operator>>() [10/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
QPixmap & value )

Streaming operators for QJsonValue (to value).

Definition at line 87 of file json.cpp.

◆ operator>>() [11/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
QString & value )

Streaming operators for QJsonValue (to value).

Definition at line 48 of file json.cpp.

◆ operator>>() [12/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
QStringList & value )

Streaming operators for QJsonValue (to value).

Definition at line 60 of file json.cpp.

◆ operator>>() [13/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
qulonglong & value )

Streaming operators for QJsonValue (to value).

Definition at line 30 of file json.cpp.

◆ operator>>() [14/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
std::string & value )

Streaming operators for QJsonValue (to value).

Definition at line 54 of file json.cpp.

◆ operator>>() [15/32]

SWIFT_MISC_EXPORT const QJsonValue & operator>> ( const QJsonValue & json,
uint & value )

Streaming operators for QJsonValue (to value).

Definition at line 36 of file json.cpp.

◆ operator>>() [16/32]

QDataStream & operator>> ( QDataStream & s,
std::string & v )

Streaming operators for QDataStream.

Definition at line 752 of file json.cpp.

◆ operator>>() [17/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
bool & value )

Streaming operators for QJsonValue (to value).

Definition at line 158 of file json.cpp.

◆ operator>>() [18/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
double & value )

Streaming operators for QJsonValue (to value).

Definition at line 152 of file json.cpp.

◆ operator>>() [19/32]

template<class ENUM>
requires (std::is_enum_v<ENUM>)
QJsonValueRef operator>> ( QJsonValueRef json,
ENUM & value )

Specialized JSON deserialization for enum.

Definition at line 121 of file json.h.

◆ operator>>() [20/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
int & value )

Streaming operators for QJsonValue (to value).

Definition at line 101 of file json.cpp.

◆ operator>>() [21/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
QByteArray & value )

Streaming operators for QJsonValue (to value).

Definition at line 177 of file json.cpp.

◆ operator>>() [22/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
QDateTime & value )

Streaming operators for QJsonValue (to value).

Definition at line 164 of file json.cpp.

◆ operator>>() [23/32]

template<class ENUM>
QJsonValueRef operator>> ( QJsonValueRef json,
QFlags< ENUM > & value )

Specialized JSON deserialization for QFlags enum.

Definition at line 130 of file json.h.

◆ operator>>() [24/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
qint16 & value )

Streaming operators for QJsonValue (to value).

Definition at line 125 of file json.cpp.

◆ operator>>() [25/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
qlonglong & value )

Streaming operators for QJsonValue (to value).

Definition at line 107 of file json.cpp.

◆ operator>>() [26/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
QPixmap & value )

Streaming operators for QJsonValue (to value).

Definition at line 170 of file json.cpp.

◆ operator>>() [27/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
QString & value )

Streaming operators for QJsonValue (to value).

Definition at line 131 of file json.cpp.

◆ operator>>() [28/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
QStringList & value )

Streaming operators for QJsonValue (to value).

Definition at line 143 of file json.cpp.

◆ operator>>() [29/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
qulonglong & value )

Streaming operators for QJsonValue (to value).

Definition at line 113 of file json.cpp.

◆ operator>>() [30/32]

template<class FIRST, class SECOND>
QJsonValueRef operator>> ( QJsonValueRef json,
std::pair< FIRST, SECOND > & pair )

Specialized JSON deserialization for pair.

Definition at line 139 of file json.h.

◆ operator>>() [31/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
std::string & value )

Streaming operators for QJsonValue (to value).

Definition at line 137 of file json.cpp.

◆ operator>>() [32/32]

SWIFT_MISC_EXPORT QJsonValueRef operator>> ( QJsonValueRef json,
uint & value )

Streaming operators for QJsonValue (to value).

Definition at line 119 of file json.cpp.

◆ stringFromJsonObject()

SWIFT_MISC_EXPORT QString swift::misc::json::stringFromJsonObject ( const QJsonObject & jsonObject,
QJsonDocument::JsonFormat format )

JSON Object from string.

Definition at line 436 of file json.cpp.