QtJson::Json Class Reference

A JSON data parser. More...

#include <json.h>

List of all members.

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)

Detailed Description

A JSON data parser.

Json parses a JSON data into a QVariant hierarchy.


Member Function Documentation

QVariant QtJson::Json::parse ( const QString &  json,
bool &  success 
) [static]

Parse a JSON string

Parameters:
json The JSON data
success The success of the parsing

parse

QVariant QtJson::Json::parse ( const QString &  json  )  [static]

Parse a JSON string

Parameters:
json The JSON data

parse

QByteArray QtJson::Json::serialize ( const QVariant &  data,
bool &  success 
) [static]

This method generates a textual JSON representation

Parameters:
data The JSON data generated by the parser.
success The success of the serialization
Returns:
QByteArray Textual JSON representation
QByteArray QtJson::Json::serialize ( const QVariant &  data  )  [static]

This method generates a textual JSON representation

Parameters:
data The JSON data generated by the parser.
success The success of the serialization

The documentation for this class was generated from the following files: