8#include <Cutelyst/cutelyst_global.h>
9#include <Cutelyst/view.h>
22 explicit ViewJson(QObject *parent,
const QString &name = QString());
35 JsonFormat outputFormat()
const;
40 void setOutputFormat(JsonFormat format);
43 enum ExposeMode { All, String, StringList, RegularExpression };
50 ExposeMode exposeStashMode()
const;
56 void setExposeStash(
const QString &key);
62 void setExposeStash(
const QStringList &keys);
68 void setExposeStash(
const QRegularExpression &re);
75 void setXJsonHeader(
bool enable);
80 bool xJsonHeader()
const;
82 QByteArray render(
Context *c)
const final;
Cutelyst View abstract view component
The Cutelyst namespace holds all public Cutelyst API.