Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.1
-
None
Description
According to JSON spec, JSON document can be of any valid type, not only arrays and objects:
A JSON text is a serialized value. Note that certain previous specifications of JSON constrained a JSON text to be an object or an array.
Arrays and objects are a legacy feature which is not a requirement. QJsonDocument only conforms to this legacy spec, and doesn't support valid non-array and non-object documents.