Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4
-
None
Description
QJsonDocument::fromJson currently only accepts QByteArray inputs. As far as I can tell there is no reason for this restriction, it only has drawbacks: it forces useless memory copies in some cases, eg. when the Json document is part of a larger buffer already present in memory.
QJsonDocument::fromJson should accept QByteArrayView inputs too.