8 #include <Cutelyst/cutelyst_global.h>
9 #include <Cutelyst/view.h>
13 class ViewJsonPrivate;
22 explicit ViewJson(QObject *parent,
const QString &name = QString());
35 JsonFormat outputFormat()
const;
40 void setOutputFormat(JsonFormat format);
55 ExposeMode exposeStashMode()
const;
61 void setExposeStash(
const QString &key);
67 void setExposeStash(
const QStringList &keys);
73 void setExposeStash(
const QRegularExpression &re);
79 void setXJsonHeader(
bool enable);
84 bool xJsonHeader()
const;
86 QByteArray render(
Context *c)
const final;
Cutelyst View abstract view component
The Cutelyst namespace holds all public Cutelyst API.