21#ifndef QJSON_SERIALIZER_H
22#define QJSON_SERIALIZER_H
24#include "qjson_export.h"
151 class QJSON_EXPORT Serializer {
164 void serialize(
const QVariant& variant, QIODevice* out,
bool* ok);
177 QByteArray
serialize(
const QVariant& variant);
189 QByteArray
serialize(
const QVariant& variant,
bool *ok);
224 Q_DISABLE_COPY(Serializer)
225 class SerializerPrivate;
226 SerializerPrivate*
const d;
void setIndentMode(IndentMode mode=QJson::IndentNone)
IndentMode indentMode() const
bool specialNumbersAllowed() const
void setDoublePrecision(int precision)
void serialize(const QVariant &variant, QIODevice *out, bool *ok)
QString errorMessage() const
void allowSpecialNumbers(bool allow)
IndentMode
How the indentation should work.