Add more tests

This commit is contained in:
WarmUpTill
2024-01-21 18:15:25 +01:00
committed by WarmUpTill
parent 9b34af98fd
commit 8701ec807e
12 changed files with 1102 additions and 11 deletions

View File

@@ -12,6 +12,9 @@ QString FormatJsonString(std::string s)
QString FormatJsonString(QString json)
{
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8());
if (doc.isNull()) {
return "";
}
return QString::fromUtf8(doc.toJson(QJsonDocument::Indented));
}