java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QJsonDocument
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QJsonDocument extends QtObject implements Cloneable
Way to read and write JSON documents
Java wrapper for Qt class QJsonDocument
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QJsonDocument.FromJsonResult
Result class forfromJson(io.qt.core.QByteArray)
static class
QJsonDocument.JsonFormat
Java wrapper for Qt enum QJsonDocument::JsonFormat -
Constructor Summary
Constructors Modifier Constructor Description QJsonDocument()
QJsonDocument(QJsonArray array)
QJsonDocument(QJsonDocument other)
QJsonDocument(QJsonObject object)
protected
QJsonDocument(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QJsonArray
array()
static int
BinaryFormatTag()
QJsonDocument
clone()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.static QJsonDocument.FromJsonResult
fromJson(QByteArray json)
static QJsonDocument
fromVariant(Object variant)
QJsonValue
getArrayValue(long i)
QJsonValue
getObjectValue(String key)
int
hashCode()
boolean
isArray()
boolean
isEmpty()
boolean
isNull()
boolean
isObject()
QJsonObject
object()
void
readFrom(QDataStream arg__1)
void
setArray(QJsonArray array)
void
setObject(QJsonObject object)
void
swap(QJsonDocument other)
QByteArray
toJson()
Overloaded function fortoJson(io.qt.core.QJsonDocument.JsonFormat)
withformat = io.qt.core.QJsonDocument.JsonFormat.Indented
.QByteArray
toJson(QJsonDocument.JsonFormat format)
String
toString()
Object
toVariant()
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QJsonDocument
public QJsonDocument() -
QJsonDocument
-
QJsonDocument
-
QJsonDocument
-
QJsonDocument
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
array
-
isArray
-
isEmpty
-
isNull
-
isObject
-
object
-
writeTo
-
readFrom
-
getObjectValue
-
getArrayValue
-
setArray
-
setObject
-
swap
-
toJson
Overloaded function for
toJson(io.qt.core.QJsonDocument.JsonFormat)
withformat = io.qt.core.QJsonDocument.JsonFormat.Indented
. -
toJson
-
toVariant
-
fromJson
-
fromVariant
-
BinaryFormatTag
public static int BinaryFormatTag() -
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-