#pragma once #include #include #include namespace json_converters { QString jsonTypeToString(QJsonValue::Type type); QJsonObject loadJson(const QByteArray &buffer); QString parseString(const QJsonValue &jsonValue); std::vector parseStringVector(const QJsonValue &jsonValue); int parseInt(const QJsonValue &jsonValue); bool parseBool(const QJsonValue &jsonValue); bool parseBoolStr(const QJsonValue &jsonValue); std::vector parseIntVector(const QJsonValue &jsonValue); std::vector parseIntVectorIgnoreNulls(const QJsonValue &jsonValue); template std::array parseStringArray(const QJsonValue &jsonValue); } // namespace json_converters