QTypedJson::Reader: don't parse JS objects as JS arrays
Add a missing check in Reader::startArray() and error out when currently
not processing a JS array.
The Reader::handleVariant() algorithm relies on this warning to find the
correct variant type represented by the JSON.
Task-number: QTBUG-141713
Change-Id: I0be5de9827683d2e0e6e0301bdb147e0bb70cf15
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
| commit | 572acadaae3cd5aa70cbaadf781c9beae9cb97fd |
| parent | 8b50ff9f52822a8677e61a4430401b49594135af |
| author | Sami Shalayel <sami.shalayel@qt.io> |
| committer | Sami Shalayel <sami.shalayel@qt.io> |
| commit time | Wed, 6 May 2026 07:57:08 +0000 |