Skip to content
Snippets Groups Projects
Forked from akiraohgaki / ocs-url
357 commits behind the upstream repository.
json.h 405 B
#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