Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.0
-
-
cb1c66bd204c12d848f47de6411d31edbafaf008 (qt/qtbase/dev) b6d7b0ede59b52974baf53c805caecbb300ad90b (qt/qtbase/5.15)
Description
QVariantMap variantMap; variantMap.insert("A", "1"); variantMap.insert("B", QVariant()); qDebug().noquote() << QJsonDocument::fromVariant(variantMap).toJson(QJsonDocument::Compact); // Qt 5.14.2 output: {"A":"1","B":null} // Qt 5.15.0 output: {"A":"1"}
Attachments
Issue Links
- is duplicated by
-
QTBUG-85264 JSON support has changed in ways that break existing code
-
- Closed
-