mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Compact JSON map file for internal processing
This commit is contained in:
parent
3ba91d069f
commit
56970480f2
@ -151,11 +151,11 @@ void JSON::Generator::loadJsonMap(const QString &path)
|
|||||||
Misc::Utilities::showMessageBox(tr("JSON parse error"), error.errorString());
|
Misc::Utilities::showMessageBox(tr("JSON parse error"), error.errorString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// JSON contains no errors, load data & save settings
|
// JSON contains no errors, load compacted JSON document & save settings
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
writeSettings(path);
|
writeSettings(path);
|
||||||
m_jsonMapData = QString::fromUtf8(data);
|
m_jsonMapData = QString::fromUtf8(document.toJson(QJsonDocument::Compact));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get rid of warnings
|
// Get rid of warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user