21 #ifndef QJSON_SERIALIZER_H
22 #define QJSON_SERIALIZER_H
24 #include "qjson_export.h"
123 void serialize(
const QVariant& variant, QIODevice* out,
bool* ok);
136 QByteArray serialize(
const QVariant& variant);
148 QByteArray serialize(
const QVariant& variant,
bool *ok);
153 void allowSpecialNumbers(
bool allow);
158 bool specialNumbersAllowed()
const;
163 void setIndentMode(
IndentMode mode = QJson::IndentNone);
170 void setDoublePrecision(
int precision);
180 QString errorMessage()
const;
184 class SerializerPrivate;
185 SerializerPrivate*
const d;
189 #endif // QJSON_SERIALIZER_H
Main class used to convert QVariant objects to JSON data.
IndentMode
How the indentation should work.