21 #include <Cutelyst/cutelyst_global.h> 22 #include <Cutelyst/view.h> 26 class ViewJsonPrivate;
35 explicit ViewJson(QObject *parent,
const QString &name = QString());
48 JsonFormat outputFormat()
const;
53 void setOutputFormat(JsonFormat format);
68 ExposeMode exposeStashMode()
const;
74 void setExposeStash(
const QString &key);
86 void setExposeStash(
const QRegularExpression &re);
92 void setXJsonHeader(
bool enable);
97 bool xJsonHeader()
const;
99 QByteArray render(
Context *c)
const final;
The Cutelyst namespace holds all public Cutelyst API.
Cutelyst View abstract view component