Stellarium 0.15.2
|
Qt-based simple JSON reader inspired by the one from Zoolib. More...
#include <StelJsonParser.hpp>
Static Public Member Functions | |
static QVariant | parse (QIODevice *input) |
Parse the given input stream. More... | |
static QVariant | parse (const QByteArray &input) |
static void | write (const QVariant &jsonObject, QIODevice *output, int indentLevel=0) |
Serialize the passed QVariant as JSON into the output QIODevice. More... | |
static QByteArray | write (const QVariant &jsonObject, int indentLevel=0) |
Serialize the passed QVariant as JSON in a QByteArray. More... | |
Qt-based simple JSON reader inspired by the one from Zoolib.
The mapping with Qt types is done as following:
JSON Qt ---- ------- null QVariant::Invalid object QVariantMap (QVariant::Map) array QVariantList (QVariant::List) boolean QVariant::Bool string QVariant::String number QVariant::Int or QVariant::Double
JSON is JavaScript Object Notation. See http://www.json.org/
Definition at line 41 of file StelJsonParser.hpp.
|
static |
Parse the given input stream.
|
static |
Serialize the passed QVariant as JSON into the output QIODevice.
|
static |
Serialize the passed QVariant as JSON in a QByteArray.