19 #ifndef _STELJSONPARSER_HPP_
20 #define _STELJSONPARSER_HPP_
52 class StelJsonParserInstance* parser;
76 static QVariant
parse(QIODevice* input);
77 static QVariant
parse(
const QByteArray& input);
80 static void write(
const QVariant& jsonObject, QIODevice* output,
int indentLevel=0);
83 static QByteArray
write(
const QVariant& jsonObject,
int indentLevel=0);
85 static void registerSerializerForType(
int t,
void (*func)(
const QVariant&, QIODevice*,
int)) {otherSerializer.insert(t, func);}
88 static QHash<int, void (*)(const QVariant&, QIODevice*, int)> otherSerializer;
91 #endif // _STELJSONPARSER_HPP_