#ifndef UTILITY_JSON_H #define UTILITY_JSON_H #include <QObject> namespace utility { class Json : public QObject { Q_OBJECT public: explicit Json(QObject *parent = 0); static QString convertObjToStr(const QJsonObject &jsonObj); static QJsonObject convertStrToObj(const QString &json); static bool isValid(const QString &json); }; } // namespace utility #endif // UTILITY_JSON_H