java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QJsonDocument
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Way to read and write JSON documents
Java wrapper for Qt's class QJsonDocument
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Result class forfromJson(io.qt.core.QByteArray)
static enum
Java wrapper for Qt enum QJsonDocument::JsonFormatNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionQJsonDocument
(QJsonArray array) QJsonDocument
(QJsonDocument other) QJsonDocument
(QJsonObject object) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QJsonArray
array()
clone()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.static QJsonDocument.FromJsonResult
fromJson
(QByteArray json) static QJsonDocument
fromVariant
(Object variant) final QJsonValue
getArrayValue
(long i) final QJsonValue
getObjectValue
(String key) int
hashCode()
final boolean
isArray()
final boolean
isEmpty()
final boolean
isNull()
final boolean
isObject()
final QJsonObject
object()
void
readFrom
(QDataStream arg__1) final void
setArray
(QJsonArray array) final void
setObject
(QJsonObject object) final void
swap
(QJsonDocument other) final QByteArray
toJson()
Overloaded function fortoJson(io.qt.core.QJsonDocument.JsonFormat)
withformat = io.qt.core.QJsonDocument.JsonFormat.Indented
.final QByteArray
toJson
(QJsonDocument.JsonFormat format) toString()
final Object
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
BinaryFormatTag
public static final int BinaryFormatTag
-
-
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
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-