26 #ifndef K8JSON_QUTIM_H
27 #define K8JSON_QUTIM_H
161 typedef bool(*
generatorExt)(QString &err, QByteArray &res,
const QVariant &val,
int indent);
170 #endif // K8JSON_QUTIM_H
Q_DECL_IMPORT QString quote(const QString &str)
This function quotes string to Json friendly format and surronds it by quotes;.
#define LIBQUTIM_EXPORT
Definition: libqutim_global.h:45
Q_DECL_IMPORT bool isValidUtf8(const uchar *s, int maxLen, bool zeroInvalid=false)
Check if given string represents valid UTF-8 sequence.
Q_DECL_IMPORT QByteArray generate(const QVariant &data, int indent=0)
Generate JSON string from QVariant.
Definition: abstractsearchrequest.h:33
Q_DECL_IMPORT const uchar * parseValue(QVariant &fvalue, const uchar *s, int *maxLength)
Parse field value.
Q_DECL_IMPORT QVariant parse(const QByteArray &data)
Parse JSON data to QVariant.
Q_DECL_IMPORT const uchar * parseRecord(QVariant &res, const uchar *s, int *maxLength)
Parse one record (list or object)
bool(* generatorExt)(QString &err, QByteArray &res, const QVariant &val, int indent)
Definition: json.h:161
Q_DECL_IMPORT const uchar * parseField(QString &fname, QVariant &fvalue, const uchar *s, int *maxLength)
Parse one field (field-value pair)
Q_DECL_IMPORT void parseToProperties(const QByteArray &json, QObject *obj)
Parse JSON data and put it's values to object as properties.
Q_DECL_IMPORT const uchar * skipBlanks(const uchar *s, int *maxLength)
Skip blanks and comments.
Q_DECL_IMPORT const uchar * skipRecord(const uchar *s, int *maxLength)
Skip one record.