You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsed, "" becomes a null QString, as opposed to an empty QString. The difference is significant. This seems to be an issue in Json::parseString, where the initial result string is created as QString s, rather than QString s("") or QString s = "".
The text was updated successfully, but these errors were encountered:
It just took me about 15 minutes to understand my own bug report, so clearly I did a bad job explaining the issue. Here's another try.
Currently, both JSON null and JSON "" become QString(). QString() is both empty and null, as martinrotter said, but that is exactly the problem: JSON "" is not identical to JSON null, so why are they represented by the same value in qt-json?
If Json::parseString initialized its return value as QString s(""), then JSON "" would still be empty, but no longer null. This is the correct behaviour. It allows you to distinguish between JSON null and JSON "", whereas the current implementation does not.
When parsed, "" becomes a null QString, as opposed to an empty QString. The difference is significant. This seems to be an issue in Json::parseString, where the initial result string is created as
QString s
, rather thanQString s("")
orQString s = ""
.The text was updated successfully, but these errors were encountered: