Re: [Interest] QJsonObject::value() - Undefined or Null upon non-existing key

2014-06-26 Thread Wiebe Cazemier
- Original Message - > From: "Wiebe Cazemier" > To: interest@qt-project.org > Sent: Wednesday, 25 June, 2014 2:31:49 PM > Subject: [Interest] QJsonObject::value() - Undefined or Null upon > non-existing key > > Hi, > > The docs for QJsonO

[Interest] QJsonObject::value() - Undefined or Null upon non-existing key

2014-06-25 Thread Wiebe Cazemier
Hi, The docs for QJsonObject::operator[] say [1]: > The returned QJsonValue is QJsonValue::Undefined if the key does not exist. Yet: == QJsonValue var = responseVariables["IDontExist"]; var.isUndefined() -> false; var.isNull() -> true; qDebug() << var; QJsonValue(null) == I use Qt 5.1.1. Re