@bundickt said:
@JKSH
The output of qDebug() << data; is:
QVariant(QJSValue, )
The output of data.value<QJSValue>().toVariant() is:
QVariant(QVariantMap, QMap((key1, QVariant(QString, value1) ) ( key2 , QVariant(QString, value2) ) ) )
Ah, right. I thought the QML engine would automatically convert the QJSValue to a QVariantMap, but you had to do the conversion yourself.
Thank you for sharing your findings!