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
Modifier and TypeClassDescriptionstatic final class
Result class forfromJson(QByteArray)
static enum
Java wrapper for Qt enumQJsonDocument::JsonFormat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
SeeQJsonDocument::
BinaryFormatTag -
Constructor Summary
ConstructorDescriptionQJsonDocument
(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.final boolean
equals
(QJsonDocument other) boolean
static QJsonDocument.FromJsonResult
fromJson
(byte [] json) Overloaded function forfromJson(io.qt.core.QByteArray)
.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) Seeoperator<<(QDataStream&,
QJsonDocument) 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
See
operator<<(QDataStream&,
QJsonDocument) -
assign
-
equals
-
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
. -
fromJson
Overloaded function for
fromJson(io.qt.core.QByteArray)
.
-