8#include <Cutelyst/Plugins/View/json_export.h>
9#include <Cutelyst/view.h>
36 explicit ViewJson(QObject *parent,
const QString &name = QString());
49 [[nodiscard]] JsonFormat outputFormat()
const;
54 void setOutputFormat(JsonFormat format);
73 [[nodiscard]] ExposeMode exposeStashMode()
const;
81 void setExposeStash(
const QString &key);
89 void setExposeStash(
const QStringList &keys);
97 void setExposeStash(
const QRegularExpression &re);
104 void setXJsonHeader(
bool enable);
109 [[nodiscard]]
bool xJsonHeader()
const;
111 QByteArray render(
Context *c)
const final;
A view that returns stash data in JSON format.
Abstract View component for Cutelyst.
The Cutelyst namespace holds all public Cutelyst API.