Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
5.15
-
-
edec095cf80b62057116ce75c581b5ca5866bdcc
Description
#include <QCoreApplication> #include <QDebug> #include <QJsonDocument> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QString tid = " {\"transactionId\":20230712203139768} "; qDebug() << "Result1: " << tid.toUtf8(); QJsonDocument doc = QJsonDocument::fromJson(tid.toUtf8()); qDebug() <<"Result2: "<<doc; return a.exec(); }
Result of using Qt 5.15
Result1: "\{\"transactionId\":20230712203139768}" Result2: QJsonDocument(\{"transactionId":20230712203139770})
Result of using Qt 6.5
Result1: "\{\"transactionId\":20230712203139768}" Result2: QJsonDocument(\{"transactionId":20230712203139768})
Value mismatch issue occurred in Qt 5.15 version.