A JSON data parser. More...
#include <json.h>
Static Public Member Functions | |
static QVariant | parse (const QString &json) |
static QVariant | parse (const QString &json, bool &success) |
static QByteArray | serialize (const QVariant &data) |
static QByteArray | serialize (const QVariant &data, bool &success) |
A JSON data parser.
Json parses a JSON data into a QVariant hierarchy.
QVariant QtJson::Json::parse | ( | const QString & | json, | |
bool & | success | |||
) | [static] |
Parse a JSON string
json | The JSON data | |
success | The success of the parsing |
parse
QVariant QtJson::Json::parse | ( | const QString & | json | ) | [static] |
Parse a JSON string
json | The JSON data |
parse
QByteArray QtJson::Json::serialize | ( | const QVariant & | data, | |
bool & | success | |||
) | [static] |
This method generates a textual JSON representation
data | The JSON data generated by the parser. | |
success | The success of the serialization |
QByteArray QtJson::Json::serialize | ( | const QVariant & | data | ) | [static] |
This method generates a textual JSON representation
data | The JSON data generated by the parser. | |
success | The success of the serialization |