qt5base-lts/tests/auto/corelib/json
Marc Mutz a5159cc50a QJsonObject: add some overloads taking QLatin1String
QXmlStreamReader also has QLatin1String overloads, which
greatly benefits parsers, since the vast majority of keys
in both JSON and XML are US-ASCII. This patch adds such an
overload to the JSON parser.

The value() function is all typical parsers need, so even
though many more QJsonObject functions taking QString could
benefit from the same treatment, value() is the single most
important one for read-only JSON access.

Add some more overloads, too, for functions that don't need
more internal scaffolding than value(). Requires adding a
dummy op[](QL1S) (forwarding to the QString overload) so as
not to make

  QJsonObject json;
  json[QLatin1String("key")]; // mutable

ambiguous between const op[](QL1S) and mutable op[](QString).

[ChangeLog][QtCore][QJsonObject] Added value(), op[] const,
find(), constFind(), contains() overloads taking QLatin1String.

Change-Id: I00883028956ad949ba5ba2b18dd8a6a25ad5085b
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
2016-05-10 21:18:46 +00:00
..
bom.json Correctly parse json documents with a leading BOM 2012-05-10 13:50:35 +02:00
json.pro Use "shortest" double conversion for JSON 2015-11-23 14:13:48 +00:00
json.qrc Android: Fix json test. 2014-12-22 08:32:39 +01:00
test2.json Import json support from playground/qtbinaryjson 2012-01-24 15:28:20 +01:00
test3.json Add the missing test file and give it a proper name. 2012-01-30 18:48:28 +01:00
test.bjson Sanitize JSON test data 2015-12-16 08:54:57 +00:00
test.json Sanitize JSON test data 2015-12-16 08:54:57 +00:00
tst_qtjson.cpp QJsonObject: add some overloads taking QLatin1String 2016-05-10 21:18:46 +00:00