21#ifndef QJSON_SERIALIZER_H
22#define QJSON_SERIALIZER_H
24#include "qjson_export.h"
164 void serialize(
const QVariant& variant, QIODevice* out,
bool* ok);
177 QByteArray serialize(
const QVariant& variant);
189 QByteArray serialize(
const QVariant& variant,
bool *ok);
194 void allowSpecialNumbers(
bool allow);
199 bool specialNumbersAllowed()
const;
204 void setIndentMode(
IndentMode mode = QJson::IndentNone);
211 void setDoublePrecision(
int precision);
221 QString errorMessage()
const;
225 class SerializerPrivate;
226 SerializerPrivate*
const d;
Main class used to convert QVariant objects to JSON data.
IndentMode
How the indentation should work.