java.lang.Object
io.qt.QtObject
io.qt.core.QJsonDocument
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Way to read and write JSON documents
Java wrapper for Qt class QJsonDocument
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Result class forfromJson(QByteArray)
static enum
Java wrapper for Qt enumQJsonDocument::JsonFormat
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
SeeQJsonDocument::
BinaryFormatTag -
Constructor Summary
ConstructorsConstructorDescriptionQJsonDocument
(QJsonArray array) QJsonDocument
(QJsonDocument other) QJsonDocument
(QJsonObject object) -
Method Summary
Modifier and TypeMethodDescriptionfinal QJsonArray
array()
final void
assign
(QJsonDocument other) clone()
Creates and returns a copy of this object.boolean
static QJsonDocument.FromJsonResult
fromJson
(QByteArray json) static QJsonDocument
fromVariant
(Object variant) final QJsonValue
get
(long i) final QJsonValue
final QJsonValue
getArrayValue
(long i) Delegate forget(long)
.final QJsonValue
getObjectValue
(String key) Delegate forget(java.lang.String)
.int
hashCode()
Returns the objects's hash code computed byqHash(QJsonDocument)
.final boolean
isArray()
final boolean
isEmpty()
final boolean
isNull()
final boolean
isObject()
final QJsonObject
object()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QJsonDocument&) 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()
Seeoperator<<(QDebug,
QJsonDocument) final Object
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
BinaryFormatTag
public static final int BinaryFormatTagSee
QJsonDocument::
BinaryFormatTag
-
-
Constructor Details
-
QJsonDocument
public QJsonDocument() -
QJsonDocument
-
QJsonDocument
-
QJsonDocument
-
-
Method Details
-
array
-
isArray
-
isEmpty
-
isNull
-
isObject
-
object
-
writeTo
-
assign
-
readFrom
See
operator>>(QDataStream&,
QJsonDocument&) -
get
-
get
-
setArray
-
setObject
-
swap
-
toJson
-
toVariant
-
fromJson
-
fromVariant
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QJsonDocument)
. -
toString
See
operator<<(QDebug,
QJsonDocument) -
clone
Creates and returns a copy of this object.
-
getObjectValue
Delegate for
get(java.lang.String)
. -
getArrayValue
Delegate for
get(long)
. -
toJson
Overloaded function for
toJson(io.qt.core.QJsonDocument.JsonFormat)
withformat = io.qt.core.QJsonDocument.JsonFormat.Indented
.
-