qt5base-lts/tests/auto/corelib/serialization/json
Thiago Macieira cb1c66bd20 Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR)
When I wrote the QCborValue to QJsonValue conversion, I used
QJsonValue::Undefined because it allowed to keep some level of
compatibility in CBOR, despite the function documentation saying that
CBOR undefineds became JSON nulls. Which they did.

But when we converted QJson{Array,Object} to be backed by CBOR classes,
that Undefined meant the insertion into the array/object actually
deleted the entry.

[ChangeLog][JSON] Fixed a regression from 5.14 that caused values of
default-constructed QVariants in QVariantLists, QVariantMaps and
QVariantHashes to disappear when converting to JSON via
fromVariant{,List,Map,Hash}.

Fixes: QTBUG-84610
Pick-to: 5.15
Change-Id: Ic0987177fe463f352db9bd84993f116e2bdacc75
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-06-24 22:43:57 +02:00
..
invalidBinaryData QJsonDocument: Avoid overflow of string lengths 2018-05-14 10:52:47 +00:00
bom.json
CMakeLists.txt CMake: Regenerate tests projects 2020-03-12 11:41:39 +01:00
json.pro
json.qrc
test2.json
test3.json
test.bjson
test.json
tst_qtjson.cpp Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR) 2020-06-24 22:43:57 +02:00