Hobrasoft httpd server
Embedded HTTP server for Qt and C++
json.h
Go to the documentation of this file.
1 
5 #ifndef _JSON_H_
6 #define _JSON_H_
7 
8 #include <QVariant>
9 #include <QByteArray>
10 #include <QVariant>
11 #include <QList>
12 #include <QSet>
13 
14 namespace Example {
15 class JSON {
16  public:
17  static QByteArray json(const QVariant& data);
18  static QVariant data(const QByteArray& json);
19 };
20 }
21 
22 #endif
Namespace for Example.
Definition: application.h:11
static QVariant data(const QByteArray &json)
Converts json to data.
Definition: json.cpp:45
static QByteArray json(const QVariant &data)
Converts data to json.
Definition: json.cpp:22